Germany decided this in the late 90s when Gerhard Schröder was in office, when Merkel came to power she tried to delay the closure but she was forced to revise that when Fukushima happened.
They even asked to remove sanctions: https://www.reuters.com/business/energy/how-german-climate-f...
Sure, in the years after Chernobyl it is expected there would be a genuine fear. But now we understand what went wrong and how to design safe reactors it is not a logical position.