But it has happened already. It happens all the time.
I have multiple friends doing this. I’ve done this. The simplest thing is to register a company here and then have a simple business-to-business contract. I also know people that are direct employees. That’s a bit more complicated, but not significantly so.
Some of our biggest companies have just scaled up the first model. They employ hundreds of people here who are then contracted out to foreign companies.
The point is that all this stuff has been happening. It’s just that the pandemic accelerated things.