At the moment, nginx-ee package will not receive new updates because EE v4 will use Docker.
But in case of updates, the only issue can be the usage of directives like
brotli on; if the new nginx package isn’t built with the same additional modules.
That’s why I have added the following lines in my script :
apt-mark hold nginx-ee nginx-common
This way upgrades with apt-get are blocked and you will be able to check your nginx configuration compatiblity with the new package before installing it