Currently, you can't use GPIO pins on a Pi5
There are several discussions going on at the moment Here are two