You can try using Policy as Code / Crossguard (
https://www.pulumi.com/docs/using-pulumi/crossguard/get-started/) if you've got a Pulumi plan that supports it. A simpler but less complete solution would be to prohibit use of the unadorned Release class (via lint / code conventions / whatever's suitable in your org), and provide a wrapper class that adds the
"args.version != "latest"
logic.