This is the kind of things I'm talking about in terms of where to build factories and where not to.
CATL building factory in Germany is a good thing, because they have a huge market and are not big in battery manufacturing. Building factory there will likely help increase CATL market share in European cars and possibly even open doors for more Chinese EV exports to Germany and surrounding countries. This kind of stuff is unlikely to hurt Chinese manufacturing. It is also a great thing for China's image to be seen as building high quality/technology product. It has halo effect around other Chinese exports.
And similarly, I think China should encourage CATL/BYD and other companies to build battery factories and auto factories in countries like Indonesia, Thailand and Malaysia to raise the public perception of Chinese high tech exports. They are unlikely to hurt China's global competitiveness.
China should look to crush battery and car manufacturers in Korea and Japan like they crushed them in shipbuilding.