I have figured it out.
For anyone also interested this is the working node setup:
The mistake I made was the “set alpha” node had to be set to “replace alpha” not “apply mask”.
Also, make sure to have the HDR box ticked for your image/rgb denoiser node, otherwise, the colours won’t be correct.