This.
I live in Taiwan, and while I love the country and hope that it never falls to the CCP, I do believe that a primary reason TSMC's manufacturing remains so heavily concentrated in Taiwan is to increase the stakes for the West.
Very few Taiwanese I know believe that Taiwan is capable of repelling a Chinese invasion or attack without the support of the US, and protecting the Western world's access to semiconductors is a big incentive for the US to think twice about letting Taiwan fall.
While TSMC folks will tell you that their operation is so heavily concentrated for manufacturing and supply chain efficiency/optimization reasons, it is very unusual for a company as big and important as TSMC to have so little diversification in the geographical footprint of its operations.
It's more than that. TSMC's competitive advantage is their volume. It allows them to experiment and iterate faster than everyone - some say it's a big reason why Intel fell behind. Moving production into the US and out of TSMC's hands kills that.
And cost effective over a shorter horizon may not look cost effective over a longer one. Just ask all those species that specialized to a niche then went extinct when that niche disappeared.
Indeed re-shoring high end silicon is an unambiguous bet on exactly this eventuality - there'd be no reason to spend the billions otherwise.