How to override Strapi's core entity-validator?

Do you maybe know a better way of changing the regex of the UID field type? So it can accept /home/testpage for example