Gas-phase metallicity gradients of TNG50 star-forming galaxies | Synapse