TSMC also has the WaferTech fab in the US and is currently building fabs in the US and Japan. I imagine geopolitical diversity is one goal in the placement of those new fabs.
But it'd still lead to a massive global chip shortage if TSMC's facilities in Taiwan were wiped out. And I guess that is a deterrent that Taiwan can use against China.