Europe and even US still buying Russian oil through obfuscated, transshipped means as stop gap and that's a fungible commodity. Would west cut off their access to 90% of advanced nodes, where they reap most of the value add, and sustains their leading tech industries? Maybe that dependency goes down to 70% in 10 years, but maybe it's closer 100% since there's a lot of dependencies from TW industries itself.
Realistically PRC will glass most of TW defense, start a blockade and leverage continued acess to western semi to try to constrain conflict. It's not like PRC can maintain TSMC without western input. Keeping TSMC running is pretty much the only strategic goal in everyone's interest.