It is somewhat amazing that Europe hasn't embraced electrification even more but taxing diesel use to encourage using it wisely is a smart geopolitical play given their situation.
Taxation on crude oil and its byproducts is largely for each member state to decide, as is electrification policy.
In some cases the EU steps in; for example with CO2 emission quotas, electrification targets, and largely regulating how countries operate in between them (for example, if France sells energy to Spain, it has to follow some bloc regulations if I am not mistaken).
I find it somewhat amusing how people insist in commenting on EU as if it was something it is not.
For me, it doesn't matter because my main mode of transport is an EV - but it's a luxury I can afford. Many people that live around me cannot.
It just means these people donate more of their money to the wallets of already absurdly rich owners of companies like Shell and Exxon - instead of using it to enrich their own lives (see the increased profits these companies are making since Iran).
But at least on a positive note, EV sales in my country have never been higher since Trump invaded Iran, so it is somewhat triggering the well-off to finally make the ("scary") switch to EV's.