Globally, there are two general approaches to foreign investment in resource extraction, which seems to be what Milei focuses on.
On the one hand we have the "let capitalism do its thing" approach, where foreign companies are given tax cuts, special deals, and exceptions to rules to encourage them to invest and hire locally.
We see the results of that approach in places like Nigeria, with horrible pollution, a few very rich people getting richer, and zero postive affects for the poor, except for the ones who break the pipelines and sell stolen gas and oil.
Same thing with the wonderful Gold mines in Papua New Guinea, which is polluting the drinking water of the still very poor local residents, on a scale seldom seen.
On the other end of the spectrum, we have Norway, which strictly regulates oil drilling in the North Sea, and charges a 50% tax on profits (net, not gross) Somehow, oil companies keep investing there, even though they pay an average Norwegian oil worker around $100,000 USD a year, vs the roughly $9000 USD per year. And Norway invests all that money in a Sovereign Wealth Fund that benefits all Norwegians.
Or Australia, which charges a corporate tax on profits from Bauxite exports of a minimum of 30%.
Australian bauxite miners make around $100,000 USD a year, while in India, the 5th largest bauxite mining country, they make $6500 usd a year.
So when the government actually charges higher taxes, they still get the investments, and better paying jobs, but the resulting oil, or bauxite, still sells for the same global daily price.
A government can knuckle under, or play hardball.
The commodity prices of the raw materials is not affected- only the amount of money that stays in the country, vs is wired immediately to somewhere else.