Cut and paste this URL to share the unmodified register and value:
https://regviz.com/r/stm32/stm32g4/STM32G431/SYSCFG/CFGR2#0x0
configuration register 2
Core Lockup Lock
SRAM Parity Lock
PVD Lock
ECC Lock
SRAM Parity Flag
https://github.com/modm-io/cmsis-svd-stm32