You can get a perfectly workable brand new E-Bike for about $1,000 in the US. While that isn’t cheap as chips it’s also not a major investment for middle class individuals.
The cost wouldn't necessarily be in the bike, but in requirements for mandatory paid registration, licensing classes, insurance, inspection, and safety equipment.
Saving fuel and parking cost adds up fairly quickly if you have a sensible setup.
However as a cycle commuters I’m not sure it saves much money over driving if done wrong. I’ve got a glorious bike. I chew through parts and consumables at an expensive rate.