The point being, Russia/Putin has threatened both nations should they join NATO there would be heavy consequences for that act.
Had Ukraine not been attacked by Russia, both nations would never have thought (at least openly) about giving up their neutrality.
Now that Ukraine has been attacked, they are rethinking their position and Putin will have done the opposite of his objective.
More bordering nations are siding with NATO. And I don't think Russia will win this war/invasion with Ukraine so in effect, he's
created a stronger, larger and more determined NATO.