In 2022 it was still possible to leave Russia for its residents; about the only thing still distinguishing it from the Soviet Union. I wonder if that has changed meanwhile.
Of course there's still the question of getting accepted as immigrant or asylum seeker elsewhere.