Revise regexp for the overlap entities error