Nuclear or not, the horrendous mistake was not reducing dependence on Russian exports even when their aggressive foreign policy was apparent even 10 years ago. That was inexcusible complacency.
I'd imagine Germans would be quick to install electric heating if electricity was cheap, no?
Wouldn't expanding nuclear drive down electricity prices?
In any case, I think electric heating will become much more prevalent anyway since it's necessary for the clean energy transition. But that will take far longer than the current Russia crisis, so it's unfortunately no short term fix.
There are a few special cases though: if you go in southern Europe, especially in Greek islands, you will find a lot of solar water heating. And France has a higher than average electric heating due to its nuclear grid.
It seems that Germany thought that Russia was a rational player interested in growing their economy, but it seems that it was just power play for personal aspirations.