@berni You can use any digital bidirectional (i.e. non analogue input only) pin which is not allocated to another functionality. This means you should avoid:
P13-P18 since they are input-only pins,
P12 which is used for antenna selection,
P5-P7 which are used for LoRa radio, and
P0-P1 used for UART.