Currently pattern matching does not use "regex" for the fields. Field name can be a regex. Field values which are string can be a regex. Also, the value of a field can be an object and we need to do some pattern matching recursively. Need to add the support for objects as the field values.