Fix incorrect regex for findRequired and deleteDeprecated