Thats actually not that wrong, because there were contracts between Russia and germany for over then years, where Russia offered very cheap gas for the German industry (Nord-Stream I and II was build for that).
But beside this, Germany was leading in the anti-nuclear movement, and finally shut down there last nuclear power plant two years ago. Currently, in Germany, renewable energy sources [1] are around 75% in the summer and and 55% in the winter month. Renewable are growing fast [2].
[1] https://www.energy-charts.info/charts/renewable_share/chart....
[2] https://www.energy-charts.info/charts/remod_installed_power_...