That's awesome. Didn't know that was even a thing.
Spain is the country I wanted to move to anyway, which Brexit destroyed my hopes of.
For anyone else that finds this potentially interesting, this seems useful:
https://balcellsgroup.com/work-remotely-from-spain/
https://balcellsgroup.com/non-lucrative-residency/
(note that they're just the first links showing up in DDG, so there might be better ones around)