During years not much has been done. The problem is that pickpocketing pays off for people that has nothing or very little to loose.
Much of the problem is in the hands of clans of underages that arrived to Spain with nothing.
The law can't do much to them.
After some years, local police started to do more pressure, mostly trying to dissuade or prevent, rather than to catch them after the fact. Eventually they moved somewhere else (our of the city now) and COVID killed tourism that always was the the main source of targets.
I'd say it's much better now.
Unfortunately, it is a topic that gets easily ignited by political parties counter accusations.