When you have the largest inventory of nuclear weapons in the world, anything is possible.
Having and suicidally vindictively using nukes are different kettles of fish
There is no reason for attacking NATO. The war in Ukraine is to replace the geographical buffer that Ukraine provides against invaders. The Russian planners are still worrying about Napolean.
Russian defense doctrine requires the geographical buffer that is no longer possible