That's why (well, one reason why) the U.S. keeps Japan and Germany in its sphere of influence. Same for Saudi Arabia (major oil producer) and Taiwan (major chip producer). Notice that U.S. / Saudi relations soured a fair bit after the U.S. became the largest global oil producer again (thanks to fracking and shale oil). We're a bit less willing to overlook an authoritarian dictatorship when we don't need them.

The challenge with all international relationships is that they're not stable. Germany almost didn't back us on Ukraine, for example, because Russia threatened to cut off the supply of natural gas and make its citizens freeze in the winter of 2022/2023. Only because the NordStream pipeline blew up anyway (an act of sabotage that American journalists have attributed to the U.S.) and the U.S. secured alternate sources of heating for Germany did they back us on Ukraine. Had it been a different regime in power in either the U.S. or Germany, that could've turned out very differently.

But the lack of cheap gas fucked up a small but important part of the german industry: chemical commons. That cripples the economic competitiveness and together with other negative developments, e.g. the change to EVs, will result in very hard times for the Germans.

In consequence the right party is rising, in eastern Germany to an already serious level.

You will see where this way goes.