This bugged me about The Last of Us as well. If I remember correctly at some point they siphon gas from a car on the road...20 years after it was abandoned.
Now I'm vaguely curious what a mad-max type car barbarian apocalypse setting would look like in a world where everyone had transitioned to EVs long before the apocalypse
Would it be possible to make more? I don't imagine one could manufacture something on the level of a modern EV battery without modern industrial equipment, but electric vehicles technically existed even at the point where cars were first getting invented, made by individual inventors and such, just with much lower speed and range. How useful a vehicle like that would be I'm not sure, but if there's no easily obtainable oil around, maybe better than nothing?
Would probably be easier to go back to using animals at that point. You can make crude batteries without high tech manufacturing, but they're going to have low energy density and likely gonna be made out of toxic stuff. So not ideal for vehicles.