ART has roots in RawTherapee. Does this RT solution help?
Edit: I’ve checked quickly in ART, and yes, it should work: