Looking historically, Russia has used European reliance on the NS1 pipeline through Ukraine during political disagreements. In 2006, they shut off the gas for a few days putting many countries in temporary energy shortages. In this case Russia has suggested hiking prices rather than disrupting supply, but things could quickly change. Shutting off NS1 would be especially crippling to both Ukraine and Germany, as it would cause price increases and shortages. However, it would also have a negative impact on Russia, as the country depends on the revenue from the gas exports.
https://www.pbs.org/newshour/world/a-historical-timeline-of-post-independence-ukraine
https://www.npr.org/2022/02/09/1079338002/russia-ukraine-europe-gas-nordstream2-energy