I think this comment is, while factual, slightly misleading. Only around 16% of people "living off the government" are public servants, from which over 50% are for essential services like education health or public safety.
Over 50% of those "living off the government" are pensioners, so mostly coming from a pool of people who already worked (and most of them in the private sector), and paid their share in taxes. In spain, the private sector makes 70% of the active workforce, while the public sector around 13%, self employed 13%, and unemployed 10%.
I know Spain (and Europe) have quite a lot of structural problems, but I fail to see how having so many pensioners has anything to do with AI regulations.