I don't quite understand what cypher is (it doesn't look like a regular expression), but the regular expression you want is like this (assuming you can't have nested curly braces ;, a regular expression is not possible for this).
([AZ]\s*\{[^\}]*num:\s*3\D[^\}]*\})
This will correspond to a single capital letter followed by an open curly brace, and has a number: 3 in front of any closing curly brace. All this was remembered later thanks to parentheses.
KRyan source share