They started that path to economic suicide by deciding they don't want cheap gas as well as shutting down reactors. Well, depending on your geopolitical beliefs, entire situation was possibility coordinated to get Europe on American LNG and off the stuff piped from Rusland and the Middle East. This was all in play well before Orange Man, but wow did he push the gas pedal down and accelerate it (pun intended). BTW there's only one way out of it, but many Europeans aren't going to like the medicine nor the global primacy people running the USA.
You don't strengthen an enemy (Russia) by buying their products. Defence is more important.
> as well as shutting down reactors
A German problem, not a wider European one.
The solution is to accelerate the transition into electric vehicles (including HGVs etc.), renewable energy, and nuclear. Oil is obviously still needed for materials production, air fuel, and so on, but extricating ourselves from situations where oil is becoming optional as fast as possible is the best course, not continuing to buy cheap gas from an aggressive neighbour that's fucking your elections and invading its neighbour.
Both of your statements are technically true (the cancelled pipeline was called South Stream).
Also true is that another pipeline called Balkan Stream connects to Turk Stream to transport the Russian gas into Bulgaria, Serbia, and Hungary, and went into operation in 2021.