It should be noted that Russian gas was more expensive than any other source of electricity in Germany:
https://www.ffe.de/en/publications/merit-order-shifts-and-th...
Hungary still uses it, and it's not helping (aside from potential kickbacks):
https://www.energy-charts.info/charts/price_average_map/char...
China also stopped importing electricity from Russia since it couldn't compete with China's own coal, renewables and nuclear.
The truth is that Germany was bound to struggle as it decided to phase out nuclear and coal but keep gas.