AFAIU. Swedish regulations as a general principle state that arms cannot be sold to states that are either, actively engaged in a military conflict, have a non-democratic rule, or violates human rights.
The catch is that there are some exceptions in the law which are often used as a loop hole. F.x Sweden sell arms to Saudi Arabia, USA, Pakistan, and Thailand. All of whom violates one or more of those rules to some extent.
So in reality that law does not stop Sweden from supplying Ukraine with arms, and indeed Sweden has already repeatedly supplied Ukraine with weapons after February 2022.