Reliable utility electricity in a war zone seems unlikely. Though big 'ol power plants make pretty easy and tempting targets (especially if you know your opponent relies on it to drive their vehicles).
This would be a great use case for space-based microwave solar though (if it ever gets off the ground).
Odessa in Ukraine doesn't have gasoline or diesel. They do have electricity though and people with EVs are driving around just fine - even an electric Taxi.
Gasoline distribution points (gas stations) tend to also blow up in a pretty ball of fire when attacked.
An EV can be charged from any socket with working power.
This would be a great use case for space-based microwave solar though (if it ever gets off the ground).