The caveat of remote jobs is that you’re suddenly competing with the entire world. So it’s everything but guaranteed that a US company specifically looking for remote workers will also pay US salaries.
Also, you should consider time zones: It’s no fun having regular meetings with US customers from Taiwan.
If the company is willing to go that way, they can also use an Employer of Record (EOR) / professional employer organization (PEO) to employ you without starting a local branch office (such as remote.com or others). But as an independent contractor / freelancer / self-employed person, you’ll probably earn more.