This issue is likely fixed in borgmatic >= 1.9.7. From the changelog:#977: Fix for "exclude_patterns" and "exclude_from" not supporting explicit pattern styles (e.g., "sh:" or "re:").
- Bug#1095997: borgmatic ignores exclude patterns Lee Garrett
- Bug#1095997: borgmatic ignores exclude patterns Lee Garrett