pub fn redact_secrets(text: &str) -> String
Redact all detected secrets in the text, replacing them with [REDACTED].
[REDACTED]
Handles overlapping matches by processing from right to left.