Russia has made this clear since the collapse of the Soviet Union. They invaded Ukraine after the Ukrainian coup in 2014. In theory, this made it impossible for Ukraine to join NATO. And yet here they are pushing (or being pushed by the US) to join NATO, despite knowing this will 100% begin WWIII.
So yes, the answer is what it always was. Ukraine can't join NATO, if they want peace with Russia. This is not a mystery.