First off, you need rare metals to make chips, so you need access to them. Then you need complex chip frabrication technology that a single company[1] in The Netherlands creates and owns. Then you need to build these incredible sterile and complex factories of which there are only a hand full across the global.
Or having built up a relationship to a country that can get you the chips that you can't manufacture yourself, either that country has a change of political system or a third country threatens you with sanctions if you continue to have dealings with that country.
It all seems to be built on shifting sources of silicon.
[1] https://www.cnbc.com/2021/11/24/asml-the-biggest-company-in-...