EU can ban trade on semiconductors and stop it from exporting at any point, effectively avoiding shortages in case of wars pandemics etc much like the US and later EU did for vaccines.
Even though US doesnt export vaccines due to a ban, Pfizer has a plant in the EU making and selling the vaccine in the EU.