I did some digging.
I found out a couple of east coast counties in Florida did this (no line voltage lights) as a county ordinance but I question the legality since the state mandates the electrical code. It does not show up in the state code. The purpose of the "Unified Building Code" was that local AHJs could not make up their own rules but I guess that concept went away. Since I retired I am not on top of this as much as before.
The ordinance only applies to replacement lights. If the existing is working and you are not replacing it, they are not sending a SWAT team over to disconnect the wires
The ironic thing is the incident that prompted the ordinance involved a low voltage light.