There are straightforward immigration paths to most of the desirable countries within Europe if you can land a job that pays a standard deviation above the mean, which most tech workers can. However, you're still looking at 1/4 of a silicon valley salary.
The game plan should really be more centered around making your money in the US and then moving for the better quality of life or to do something that aligns with your values. I'd say it's the moving wealth part where people are more likely to fall into traps (ever heard of an exit tax?), but even then you're probably still better off hiring a local account (cost me 2k when I first moved to Denmark, and another 2k when I left :facepalm:).