The mistake the Germans made, which they are now correcting, is over reliance on Russian gas to bridge the brief gap to energy neutrality. Though, in fairness, until Putin's melt-down last week, he could have saved that deal and kept on milking the Germans for billions for quite some time. Such melt-downs have not been seen in international politics since Trump reluctantly disappeared from it last year. You might say that Putin (whom Trump referred to as a 'genius' just last week) has trumped Trump in that respect.
Basically, the fix for Germany is importing expensive natural gas from the US and elsewhere as a stop gap solution while accelerating the move away from burning that to clean up the energy sector and lower cost.
That's what they just announced. 80% renewables eight years from now and 100% five years later. They are over 50% right now. Also, a recession is a great time to inject some capital into your economy. And of course the Germans have a healthy economy and low debt; unlike certain other countries. And of course they export a lot of their renewable tech to others; like the US.
Also, France and Germany have connected grids. So, with Germany producing lots of wind powrr and France providing nuclear base-load, both will be fine. No need for Germany to build nuclear plants. And no need for France to build a lot more plants either when they can import cheap German renewables to complement their expensive nuclear supply. The math to get rid of coal and natural gas in fifteen years actually adds up.