Freelancing can earn you FAANG Salaries on your own terms, in much much lower COL and with lower taxes. If you earn 300K in a low tax (say 10%), low COL country that is same purchasing power as earning 1.5 to 2 Million in SF or any other HCOL area.
How do you figure? 1.5M can buy you an entire home in SF. The cost of everything else does not really scale higher in SF so the rest of your compensation is left to you to save.
300K buys you a Home or two in every low COL area. A 20$ uber ride in SF is 2$ here. Sure Electronics are about same, but all else is between 2 and 10 times cheaper