There is a bug where this regex can match multiple lines if a policy
contains ':'.
Make this regex stricter by making sure the key doesn't end with a ':'
within the quotes.
Closes-Bug: #1968294
Change-Id: I4090d6831db8ddc4fba294f181085b657e2b3345
(cherry picked from commit 33fb90326f)
(cherry picked from commit 9e10e80160)
(cherry picked from commit 81ea071166)