Download MTK Client (open source). Put phone into BROM mode (hold volume buttons while connecting USB). Use “Format FRP” command.
Are you trying to you forgot, or are you looking to switch to a different mobile carrier ? How To Unlock Nokia G50 by Unlocky Tool nokia g50 unlock tool