In 5-6 years, Europe should be able to free themselves of Russian energy and build a military capable of standing up to Russia. (Ukraine is almost managing the latter on their own.)
This assumes that, if allowed to win in Ukraine, Russia would return to normal gas and oil deliveries. I’m not sure there is a way back to regular trade now, Russia has essentially, if not literally, declared war on much more than just Ukraine.