But I think environmental policy would be really hostile to a large fab. Politics seems really fickle about it too. For "old school" industries like coal they try to bend over backwards to make exceptions, but when it comes to new players especially local politics will have little reservations to tanking your multi million dollar projects.
This can obviously be a huge benefit to the population, but if I were in the position to choose a location I'd factor that in heavily.
That is also possibly the reason Tesla is in such trouble over their new factory. While they are a car manufacturer, and a modern, hip and green one at that, which politics openly hails as good, secretly they are damaging established interests by the traditional German car manufacturers and their allies in high positions. So the administration will nod and smile, but try to find ways to hinder them.
I don't really see the german government here at fault. They were eager to get the factory up and running and were working with Tesla to get it built quickly. If Tesla wants to build first and get the permits later, it also has to retroactively improve things when they were not up to code. You can't just get permits because you've built something.
You can find giant chemical and manufacturing plants all across Germany.
Thinking Germany is problematic is a very narrow worldview, in most countries you have huge political/corruption/business continuity risks, from unsteady electricity to broken roads to terror threats - Germany is a safe and stable bet.
However, after 1990, the plants have been closed and most of the skilled people have gone to USA, Canada or Western Europe.
So for the present time you might be right, it could be difficult to find enough experienced workforce, unlike many years ago.
Personal cost in semi factories is much less relevant (and you actually want the higher-cost employees because they know how to drive the multi-billion dollar machines)
Bosch just opened a new chip fatory in Dresden.
https://www.bosch.com/stories/bosch-chip-factory-dresden/
Globafoundries and Infinion are there, too.
https://www.infineon.com/cms/dresden/en/
The Dresden/Saxony area is said to have in semiconductor manufacturing "2,300 companies with roughly 60,000 employees active in the industry in Saxony and generating revenues of some €16.5 billion last year."
Apple invests heavily in a Chip design center in Munich.
https://www.apple.com/uk/newsroom/2021/03/apple-to-invest-ov...
Customers for the TSMC chips would be in the automotive industry.
Tesla builds a new EV factory in Brandenburg near Berlin... Volkswagen has several factories working on current and future EVs, ... for example the ID.3 is being manufactured in Dresden, too.
https://www.volkswagen-newsroom.com/en/press-releases/id3-st...
To flip the question around: what does the ability to produce executive cars have to do with Germany's ability to fix the problem Intel have been stuck on for the better part of a decade?