More strict validation for flags in "like" rule