The only wrinkle is that when the German government made electricity production from nuclear power illegal, it had to take over some of those responsibilities, for obvious reasons.
It also took over the money that had been saved up thus far, which is almost certainly more than needed to cover the costs. Well unless those costs are driven up to infinity with ever more creative mechanisms by politicians.