It’s a solved problem in the US at least, as long as the car you buy comes from a manufacturer with a good fast charging network, of which there is currently exactly one. Australia is well on its way to being solved for most trips.
Even if we swapped every ice vehicle for electric and had the charging infrastructure in place, we wouldnt leave all that oil in the ground. Its just to useful, it would be used for plastics, chemical feedstocks, fertilizers, insecticides, pharmaceuticals, cosmetics, etc... All those hydrogen carbon bond we dont have to pay the energy for are just to danm useful and valuable for so many industries to leave in the ground.