In the USA there is a special legal category for Neighborhood Electric Vehicles which are limited to 25 mph / 40 kph. They are popular mainly in retirement communities.
https://www.thedrive.com/tech/19658/neighborhood-electric-ve...
https://www.thedrive.com/tech/19658/neighborhood-electric-ve...