FYI, there are actual laws setting limits on bikes. Generally most places in the USA will allow a Class 1 or Class 2 e-bike to be ridden anywhere a bike can be ridden legally and some allow Class 3 with more restrictions. Class 1 is pedal assist maximum 20 mph assisted and class 2 throttle assist up to 20 mph with pedal assist allowed and if you pedal harder yourself it’s okay. Class 3 is pedal assist up to 28 mph, but this is not accepted as a bike in many places or has more restrictions. Anything else would likely be a motorcycle or moped and subject to licensing/insurance/lights & mirrors/etc requirements and would not be allowed in most park/trails/bike paths/etc or only usable on private property like a go kart.
However, in practice, no one is enforcing these laws and it’s difficult, because there is no easy way for the police to determine what class a bike is and no authority providing you with a license plate to verify the class that would limit your access if you didn’t have it. The government has basically accepted that most ebikes conform to the ebike laws most of the time. However, I believe many rental e-bikes like Lime/Bird/etc do conform to the law and are Class 1 or Class 2 bikes.