Russia's invasion of Ukraine was not the unprovoked attack the war-enthusiasts pretend it was.
All NATO had to do to avoid the Russia conflict was keep its promise to refrain from expanding NATO.
It started in 1990 when James Baker promised Gorbachev that NATO would not expand one inch further eastward if Russia agreed to the reunification of Germany, thereby officially ending WW II.
https://nsarchive.gwu.edu/document/16117-document-06-record-conversation-between
Gorbachev agreed, but within four years NATO began expanding eastward anyway.
The Russian invasion occurred when NATO began teasing NATO membership for Ukraine, whose name literally means "borderland" in Russian because it is on the border with Russia and has been the origin of numerous invasions of Russia in the past.

Look at the proximity and strategic locations of Estonia, Latvia, Lithuania, Sweden and Finland relative to Russia.
They all create more of a "risk" than Ukraine.
Putin is trying to recreate the Soviet empire. His own advisors have said so repeatedly.