This is a complete mischaracterization of why Germany invested so much into renewables. Like... 20 years ago? Germany saw the writing on the wall when it comes to how they were getting their energy which at the time was mostly coming from coal. They didn't want to go Nuclear for whatever reason so that left renewables and natural gas which wasn't preferred but it was still significantly better.
They didn't do it just to "be super green". They did it because coal is all around bad and wasn't the future that Germany wanted--and they were right. They absolutely made the right decision back then and investments by the German government are a big reason why solar is the cheapest form of energy right now (thanks Germany!).
If anything they didn't invest enough in renewables. They obviously didn't expect the effects of global warming to come this quickly. A big reason why electricity is so expensive is because the rivers in France that supply water to their nuclear reactors dried up. I mean, how do you predict something like that happening even 10 years ago? Even if that was a possibility included in some climate change report how seriously would politicians take such a prediction?