For instance if I mis-type `regex(fooooooo` missing trailing ')'. Then the `constraintKey` is `regex(fooooooo`, then it will just return null from here.