$ aptly mirror create -architectures="amd64,all" -filter="$name (php)|$name (fail2ban)" -filter-with-deps bookworm-main http://deb.debian.org/debian/ bookworm main
Note that I used "$name" instead of your !Name syntax and the OR$ aptly mirror create -architectures="amd64,all" -filter="$name (php)|$name (fail2ban)" bookworm-main http://deb.debian.org/debian/ bookworm main
$ aptly mirror update bookworm-main
...
Success downloading http://deb.debian.org/debian/pool/main/p/php8.2/php8.2_8.2.7-1~deb12u1_all.deb
Success downloading http://deb.debian.org/debian/pool/main/p/php-defaults/php_8.2+93_all.deb
Success downloading http://deb.debian.org/debian/pool/main/u/uwsgi-plugin-php/uwsgi-plugin-php_2.0.21+4+0.0.15_amd64.deb
Success downloading http://deb.debian.org/debian/pool/main/f/fail2ban/fail2ban_1.0.2-2_all.deb
Mirror `bookworm-main` has been successfully updated.
Hope this helps a bit...