refactor: more precise rule for private keys (#930)
* refactor: more precise rule for private keys
The current regex didn't match PGP private keys anymore, since they start with `BEGIN PGP PRIVATE KEY BLOCK` and the `BLOCK` never matched for the existing regex. I've made that part optional so that all strings matching for the current regex will still match for the new regex.
* refactor: more precise rule for private keys
Co-authored-by: Fabian F Groß <fabian.f.gross@deutschebahn.com>