Well, as you will see, your regex is incorrect:
.*"status:\s"422.*
^ (look here)
.* matches any string before what follows.
"status:\ " matches literally the sequence of double quotes, the word status, ... beeep (there's a double quote after status, not after the colon and the next space character).
NOTE
Response object is not a POJO (pojo stands for the acronym (P)lain (O)ld (J)ava (O)bject, and what you are posting is, indeed, a JSON encoded string data)
The correct regexp should be (as the data shows):
"status":\s*(\d+),
^ (see how we moved the double quotes here)
- The
.* is not necessary, as any regexp that has no anchor char (^ at the beginning, or $ at the end) matches at any position in the string.
- Then follows the string
"status": literally.
- Then a group
\s* of spaces (indeed, tab or spaces, any number, even zero is valid)
- Then a group of one or more digits (the parenthesis makes the subexpression to become a group, so you can select only the part matching that group, and get the status value)
- Finally, the
, comma after all, as everytime the status will be followed by a comma to separate the next field.
See demo.