It's worth reading through Gitlab's public handbook which covers all of the company's operations including how they deal with remote employees.
As you can see they have a subsidiary in each of the countries in which they hire:
https://about.gitlab.com/handbook/people-group/contracts-pro...