Cut and paste this URL to share the unmodified register and value:
https://regviz.com/r/stm32/stm32g4/STM32G431/SYSCFG/SKR#0x0
SRAM2 Key Register
SRAM2 Key for software erase
https://github.com/modm-io/cmsis-svd-stm32