At USA federal level, which applies to federal lands and federal funding like 'rec paths' on municipal lands, ebikes are bicycles. They are not vehicles and not motorcycles.
https://usbr.gov/recreation/publications/ebikes.pdf
A vehicle requires significantly different licensing, and typically registration + insurance policy + driver licensing. What location are you in that classifies an ebike as a vehicle?