I’ve now tried this solution and it work’s! thanks! even though, I have two things I’m trying to achieve with no success:
1. Is it possible to do this validation to the first field in a repeater? only to the first.
2. Is it possible to apply this validation on the wp core editor?