Clarity in darktable

I set up a parametric mask as you describe and then apply a tone curve, pulling it down to increase contrast in the highlights. It works pretty well as long as I’m not too aggressive with it.