Admittedly the China we moved all our production to in the early 2000s wasn't that bad a business partner. However we've always known that countries can change very quickly and since Xi JinPing it's become a major geopolitical threat. Only now we're too invested and it will cost us a lot to pull out again. Still, it has to be done.
I hope we never make that mistake again and diversify in countries we can actually trust.
Personally I think leaving everything to "the market" is also a very bad idea since all the market cares about is money. Not the environment, not people, not society. Trying to get the market to take these into account makes for very awkward workarounds like carbon taxes/credits. There needs to be a balance between free markets and protecting our own interests, and those of the world as a whole.