About 20 years ago, I realised that software work paid the best in the USA, so that was always my dream. The alternative track that I had in mind was to become a day contractor in the UK, earning £400 to £600 /day (rates may be better now), but I went to the USA instead.
Suffice to say, the UK doesn't pay software engineers very much (compared to the USA), unless you work for a US tech company, but even then, you'll still be calibrated to "local market rates".
Yup, the only exception in the UK perhaps is some niche areas of finance; everything else pales in comparison to US comp in tech.