I have interpreted Putin's nuke threat as being a threat against NATO should they attack Russia, or Russians (which has been the case since the start of the Cold War, so nothing new).
In other words, a simple warning to NATO: keep your forces out of the Ukraine war.
At no point have I interpreted a threat of nuclear attack against Ukraine itself.