You mean after invading Taiwan? TSMC is in the Republic of China, not the People's Republic of China. They're not, for practical intents and purposes, the same country.
I specifically said 'for practical intents and purposes' to head off this sort of obnoxious "well ACKSHULLY..." response. The CCP does not rule in Taiwan. Until that changes, the CCP nationalizing TSMC isn't in the cards. And even if that happened, there probably wouldn't be anything left of TSMC to nationalize.