As Russian forces withdrew in the face of the recent Ukrainian counteroffensives, the Kremlin repeated its claim that its military invaded because of the threat of Nato’s possible expansion.
This has been a constant refrain of Kremlin military briefings. For example, following the humiliating sinking of Russia’s Black Sea flagship, Moskva, in April, Margarita Simonyan, the head of broadcaster RT and a major Putin cheerleader, said:
We need to understand, when we see difficult events taking place, the losses, we are not fighting against Ukraine … from an entirely technical, military point of view we are fighting with Nato. We are fighting against an enormous armed opponent, the most powerful and in essence the only one of its kind.
https://theconversation.com/ukraine-war-this-map-holds-an-important-clue-about-kremlin-fears-of-nato-expansion-190677
I am not defending Russia's invasion of Ukraine, but this is their side of the story, so to speak. They feel threatened by the expansion of NATO.