Fairphone 4 is not charging

Is the phone booting correctly? Are all other functions OK? Loudspeaker in particular?

Since you have a new USB port it’s unlikely to be dirty.
There may be a problem with the contacts.
Check that the connector is properly seated (step 10 in the iFixit USB replacement guide).