You have to be prepared to deeply invest in career in the short term to be able to retire in the medium term. I'm not at 'early retirement' stage but I have been able to hit some financial independence milestones -- some tips:
* Build your personal brand, blog, code open source, write a book, etc. Be known for something specific and valuable
* Get a great job at larger tech co, probably American based given salary differences, especially if its in your area of expertise, then you can negotiate more salary and stock
* Cut down a lot on your personal expenses
In short be prepared to invest a lot of your personal time and have a lot less fun in the near term.
TBH most of the people who have 'retired early' got lucky in the sense that they either joined a startup and had a great exit or joined a FAANG in the mid 2000s and worked there for 10-15 years and watched their stock grow and grow...
OTOH, you can just choose to work your hours, have a sustainable and fun life, disconnect and work on preventing burnout, and just roll with the tech lifestyle