Sure, but it can't force Sweden to deport British people living in the EU; that's a decision they made themselves. This is particularly clear when contrasted with literally every other country in the EU. From the article:
According to the most recent European Commission annual report on implementation of the WA, almost 4,000 applicants for post-Brexit residency status in Sweden were refused, out of 14,200 made.
By contrast, Bulgaria, which has a similar number of applicants at around 16,000, refused just five people, and Belgium, which had 13,000 applicants, refused 605, according to the same report.
According to FCDO analysis, Sweden’s refusal rate of 27.5% is three times higher than any other member state and considerably higher than the EU average of between 3% and 4%.
Bigots in Britain decided to throw British people in the EU under the bus, but that doesn't absolve authorities in EU countries (in this case Sweden) for running over them with the bus. The Bulgarian example is particularly useful here; they got their excuse to deport the shit out of Britons in Bulgaria but just chose not to do so (presumably due to their center-left government).