Selective enforcement of those you find disagreeable is a way of bullying people with impunity.
That said, I'm curious on how you would solve the issue that Sweden is faced with. It is a very outsized, pronounced, issue and the legal system in Sweden is not equipped to deal with it.
The Swedish legal system prioritises rehabilitation, but the scale of the problem and the reoffending rate being what it is for serious crimes of foreign born persons does need to be answered somehow.
Ignoring it will make the problem worse, people will keep reaching further right.