Ukraine formally enshrined the goal of NATO membership into its constitution in 2019.
That's why the only years that matter (in terms of the "Ukraine/NATO caused it all" hypothesis) are 2008-2014.
Once Russia's regime did chose to invade, any moral capital it may have had in regard to the issue was instantly extinguished.