The idea of Ukraine joining NATO was literally unimaginable before Russian aggression. After the fall of the soviet union there were multiple agreements like the Declaration of State Sovereignty of Ukraine and Budapest Memorandum that basically established Ukraine as a sovereign and neutral nation under the protection of the west and east. Even after Russian interventions in Ukraine and finally the taking of Crimea, NATO members like Germany were still vocal about never letting Ukraine in.
Also if Russia truly cared about NATO expansion, how come we barely hear anything about Finland and Sweeden? I occasionally even forget they're a part of it now.