All bikes, whether electtic or not are pretty robust. Most things that need any attention are the service items, like brakes, tyres, chains, and at higher milages, spokes, bottom bracket beatrngs and steering head bearings.
Just about everything is cheap and easy to fix. I wouldn't say that you need any more maintenance on cheap bikes than expensive ones, neither is failure of components any more likely.
No electric bikes like being left out in the rain. Vulnerable items are throttles and displays on all bikes and sometimes batteries on cheaper ones.
If you're a dunderhead when it comes to maintenance, I'd recommend a bike with a hub-motor and hydraulic disc brakes. Avoid any bike with rim brakes.