MODE-1773 Made the projection expressions more general

Changed the regular expression inside the code and in the JSON Schema.