Its going to take red states much longer to get on board with EVs than blue states and on top of that, EV technology isn’t 100 there (yet) and its better to get a hybrid in the moment I feel like. I think something like this is more realistic:
Ban new gas-only cars: 2036-2039
Ban new normal hybrids: 2039-2042
Ban new plugin hybrids: 2042-2045
I say this as a left-leaning person politically, we are still going to need gas stations until at least 2050.
like other commenters said, regardless of current regulations, the market is heading that way, led by China and by Europe. By 2030 there will be affordable EVs (in the 20ks new, not counting dealer fees).
The only thing I think could prolong gas cars in the market is If a future president pulls a 180 and penalizes EV while subsidizing gas cars, but even then you can only resist market forces for so long.