Germany stopped importing Russian gas after the start of the Ukraine war. One also has to understand that only a small fraction of gas use in Germany is for generation of electricity and much bigger part is for heating. Finally, the amount of electricity generated from gas is around 80 TWh and did not increase after shutting down nuclear.