Seems to be the library to switch to as it supports the RPi5 https://gpiozero.readthedocs.io/en/stable/index.html#
Category: IO Pins
RPi.GPIO no longer working from RPi5
RPi.GPIO no longer works due to the change to the new RP1 southbridge chip. Full explanation here. GPIO Zero offers a good migration guide here.