Signed into law in 2002, with the last reactor going offline in 2023. Depending on how you count we got rid of it a quarter-century ago.
Not the best decision, and a major reason why Germany uses so much coal and gas today. But outside some special circumstances nuclear isn't cost competitive with other renewables anymore, so for future plans it doesn't really matter
Germany uses less coal and gas today then it the past and has been a straight decline broth before and after the nuclear phase out [0]. They are currently committed to phasing it out by 2038. We can argue that it may have gotten rid of coal and gas faster, but that’s a counter factual that would have to be proved.
[0]: https://ourworldindata.org/grapher/electricity-prod-source-s...