Where the hell do you earn 300k per year?
In Europe most certainly it this is not possible.
Also don't forget life style creep and risk of loss of social circles.
This is much easier to achieve at big tech companies in the US than you think. Look at levels.fyi and you'll see many examples of people with only a few years of experience making $300k. I personally know many people making that much three years after graduating from a coding bootcamp, and a few people who make $450k-$550k after only a couple more years than that.