There is more to Russia than: Putin, the military, and various corrupt Russian oligarchs. This serves to deny normal, decent Russian people access to open source software.
Disgusting.
But let's set aside for the moment whether the actions of Russia's government are justified, because that makes this a lot simpler. Let's just focus on the persecution of innocent people. You say that ordinary Russians aren't actually innocent because they just should have done something about the invasion? OK. Then kick Americans off of GitHub, too, for the invasion of Iraq. (I'm American, not that it matters.)
You want to hold people to a certain standard? Standards are endlessly debatable, and maybe I don't actually have any strong opinion about them. But at least be consistent. Hold all people to the same standard.