Cars with internal combustion engines will still be in demand for at least ten years.
I turn my cars over every five years, with my next one due in 2024. That one will be petrol powered, but in 2029 I would consider electric if proven manufacturers like Hyundai, Mazda or Honda have them available with good supply at a price point $25k below current offerings like the Ioniq 5.
Currently my fuel bill makes up less than 20% of the TCO of my vehicle, so I'm not particularly concerned about it.