This is EXACTLY who should be buying an electric car. If you're commuting around 15km each way, then you drive aboout 15000km a year. Over 10 years, in a gas car you're getting something like 7L/100km, which at local gas prices here in Ottawa is around $13,000 over the life of the car. For the same amount of driving over 10 years, an electric will cost you about $2K in electriciy. And that's not counting all the other money you save in things like oil changes and reduced brake wear and the fact that the electic is a lot less likely to break down since it has fewer moving parts.
Right at this exact moment, car prices are all crazy because of supply shortages, but in pre-covid days I bought myself a second hand 2015 Leaf for around $15K. If I'd wanted to buy a gas car and keep it for 10 years, to break even on gas and oil, I'd have to have bought a second hand gas car for around $3-4K, and even pre-covid, that didn't buy you anything that would run trouble free for 10 years.
Yes, eventually I'll have to replace the battery pack, and that will be expensive, but even up here in the frozen wasteland of Ottawa where my range drops precipitously in the winter, I seriously doubt I'll have to replace it in the first 10 years, so if I opt to do that, it will be instead of buying another car later.
All of this ignores any rebates you'd get for buying electric, too, which makes the gas car even less attractive from an economic standpoint.
Everyone's financial situation is different, and there's certainly people for whom that $3K gas car will make sense, but long term the electric is going to win from a financial perspective.