This is only half the story. What is actually happening is that Sweden is importing expensive electricity from the baltics and exporting it to Germany. So even though the electricity is only in "transit" through Sweden, the prices go up in southern Sweden. Obviously everything is working as designed, but it does feel a bit unfair.
To lower the prices in southern Sweden either southern Sweden or northern Germany must increase "plannable" electricity production to avoid expensive imports from the baltics.