The other thing I would argue is that you can not use the current war in Ukraine as a reason why the Ukraine should become a NATO member if it is indeed true that Russia attacked primarily because Ukraine wanted to become a NATO member.
[1] https://en.wikipedia.org/wiki/Estonia%E2%80%93Russia_relatio...
Sure, we can now argue whether the promise (1990), the first NATO expansion afterwards (1999), the Bucharest declaration that Ukraine and Georgia will become NATO members (2008) or Ukraine changing its stance from remaining unaligned to seeking a NATO membership (2014) should be labeled the beginning of the current situation, but I think it is fair to pick 1990 as this is where the situation that Russia does not want was laid out.
There are most likely also other interest such as oil and gas in Ukraine but I don't think they are the primary reasons, even though they might have tipped the calculations. And I consequently think that this could have been avoided if the Ukraine would not have pursued a NATO membership or if Russia would also have joined.