Cut and paste this URL to share the unmodified register and value:
https://regviz.com/r/stm32/stm32n6/STM32N645/GPIOG/GPIOG_HWCFGR4#0x0
GPIO port G hardware configuration register 4
OSPEED register reset value
https://github.com/modm-io/cmsis-svd-stm32