NATO is not required for the Ukraine. Under the Budapest Memorandum on Security Assurances, 1994 - the USA, UK, and others committed to defend the territorial integrity of the Ukraine in exchange for them giving up the 3rd largest nuclear arsenal.
Then you didn't.
Why would NATO be different - under an actual peer-level invasion?