Looks like there is no RTC implementation for STM32G4 series chips. It is very similar to the RTC in the STM32L4 series.