This is because of the CHIPS act. Other than Trump's constant whinging about China, he didn't have anything to do with this.
I think when the Trump admin renegotiated trade policies (and I'll given Biden credit for keeping them) the economic incentives were rebalanced. I think the result is complex/low volume manufacturing is starting to return to the US, and simple high volume manufacturing is moving to Mexico (which we have a very good relationship with... i'll discredit Trump for being so stupidly aggressive with them in the first few months of his administration though)