There’s no legal way to reverse engineer patented products.
Just to clarify: reverse engineering patented products is not illegal by itself - in fact, the information is normally public as it's in the published patent itself! What's illegal is making your own product based on patented inventions without consent from the patent holder,
assuming the patent is valid.
The above is only true, however, if the patent is actually valid in the country the product is being distributed from. Even Dolby themselves hint at this themselves in the
page you linked, which explicitly mentions "in the United States and elsewhere". Guess why they felt the need to phrase it that way? It's because the patents are not actually valid everywhere in the world - only in some countries.
Outside of these countries, it is perfectly legal to write and distribute software that implements inventions described in these patents. That's been done, many, many times over the past decades (ffmpeg and VLC are textbook examples) with no successful challenge in the courts of those countries (and that's not for lack of trying). And to be clear we're not talking countries like Russia, China or some hypothetical "patent paradise" island in the Pacific or something, unless you are willing to argue that most countries in Europe, including the UK, have gone rogue and anti-capitalist/anti-IP (good luck with that).
You can't even argue that Dolby is being blindsided or being taken by surprise here. Many Dolby codecs have been reverse engineered a long time ago, they are surely used to it by now and they know they can't do anything about it because it's perfectly legal in the countries where it's being done. Surely they must treat it as a fact of life at this point, and are factoring it in their business decisions. Yet that doesn't seem to have stopped them from developing new formats like Atmos, so that doesn't seem to bother them as much as you think it does. In fact, one could argue that the wider availability of alternative encoder/decoders actually
helps Dolby's bottom line, because it makes their format more widespread and thus harder to ignore when developing new products, but you need to pay them patent royalties if you want to use them in a product distributed in the US!