The problem here is that you are trying to use an NGINX plus package, for which you need to purchase a subscription.
Or you have GetSpeedPage repository subscription, but meh. https://www.getpagespeed.com/repo-subscribe
You have something maintained by google's team which it should be free. https://github.com/google/ngx_brotli
I just used the plain old gzip compression, which will do the work 99.9% of time.
I am using CentOS 09 combined with an nginx web server.