USART1 is default peripheral of Nucleo-G474RE but LPUART is default configuration
The solder bridges on the Nucleo-G474RE are set by default to LPUART but the configuration in STM32CubeIDE and I would guess in STM32CubeMX is set to USART1. I would suggest to change this to avoid confusion for the users.