In a word: Car manufacturers do not work anymore on a single country’s decisions. They will continue to manufacture ICE vehicles as long as they have a profitable market for them, whether that includes the UK or not. Conversely they will continue to develop their electric range if that’s what other markets demand.
The choice of where you go shouldn’t be based on what happens in 7 years, especially as it will only apply to new cars, if it does.