Allowed commands not being respected?

I have ‘grep’ as an allowed command. A vanilla grep command runs automatically without asking permission. But a more complex command does not. Why?

Example of a complex command that always asks to run:

grep -A5 "Issue #[1-5]:" tmp/confluence/quality-report-dry-run.md | grep -E "(Target:|Details:)"