The threat of Ukraine's admittance to NATO was one of the stated reasons that prompted Russia to invade Ukraine. Pro war advocates claimed this was nonsense and there was no plan to admit Ukraine into NATO. That claim was dubious at best.
Still, if there were discussions and negotiations taking place regarding Ukraine's admittance into NATO, that discussion ended when Russia invaded Ukraine. If Ukraine's admittance into NATO was one of the issues that caused the war to begin, threats to allow admittance would only prolong the war or end any future peace treaties. It became a moot point.
Well, that actually isn't true. While Russia and Ukraine are at war, there are those that are still advocating that Ukraine be admitted to NATO. A Neocon organization called the Atlantic Council just released an article discussing security options for Ukraine, including admittance into NATO.
It appears that those holding this view give absolutely no credence to NATO expansion as provocative rather than a deterrence. The Obama backed Ukrainian color revolution lead to the Russian invasion of Crimea in 2014. It would appear that this was provocative rather than a deterrence. At the very least an equal focus on avoiding provocation should be employed.