In 2019 I resigned from my previous employer (an American company growing fast and short of 1000 employees nowadays). I moved to the Netherlands to work on a startup (that pays average for the Netherlands).
If you check my website (https://henvic.dev/) you can see it's not like I was inexperienced.
I was told the major reason why my request for a raise was denied was that my salary was great for where I lived in Brazil (northeast, which is poorer than São Paulo and Rio de Janeiro).
I considered the work I was doing worth way more. I started looking for new opportunities and asked to quit. This is not uncommon at all. Most of my colleagues in the tech field that are average or better have eventually moved abroad for money or started working remotely for a company overseas. Working for a company in a poor country where it has a local presence is almost always a sentence to getting paid less than you're capable of elsewhere or doing remote work.
Anyways, I think moving jobs is the best way to push for a raise, no matter where you live.
My advice is to seek for opportunities overseas, or even in your country. For context I live in Ecuador.