"From June 28, 2021 the following persons are exempted from the entry ban:
EEA-citizens (including citizens of Andorra, Vatican, San Marino and Monaco) and citizens of Switzerland;
persons who have long-term resident status in Sweden or another EU Member State;
persons who have a residence permit in Sweden or another EEA state, Andorra, Vatican, San Marino, Monaco or Switzerland;
persons who have a national visa for Sweden or a national visa valid longer than three months in another EEA state, Andorra, Vatican, San Marino, Monaco or Switzerland;
persons with family ties to the above-mentioned categories (see Q&A). "
Russia and Ukraine are not in EEA so they might have problem with travelling to sweden if I'm not mistaken.