Can I re-use pins that are labeled as the same physical STM32G4 Nucleo pin?
Please read the datasheet and the user manual. In general, you can definitely use it separately. In this particular board you have limitations. As this is made to be Arduino nano board compatible.