I agree with most of the above, but to be fair, those people asking who is forcing you to buy an electric car: OP has said about when the time comes, not now; and once petrol and diesel cars are no longer legally able to be sold, if you want/need a car, you will be forced to buy an electric one.
You could say the same about the current energy price rises - nobody is forcing you to pay the high prices; only if you want to use a cooker, a fridge, lights, heating etc.
That said, even if the current date of 2035 is kept to, there will be a huge rush of people buying a new ICE car just before (assuming that companies can keep up with the demand) - buy a good one and maintain it well, and that might take you up to 2055 - and there will still be the second-hand market, although we don't know how market values will soar as fewer and fewer ICE cars are available, if demand is still high.
Also, as if the tax on petrol and diesel isn't already buttock-clenchingly high, prepare for it to increase astronomically as time goes on. Much more politically expedient to allow people free access to something, but put it far beyond their means, rather than ban it outright: it tends to have pretty much the same effect in the end.