I think darktable isn’t made for the kind of very precise localised work you seem to need here.
That kind of very precise masking is more the domain of Gimp, Krita and similar bitmap-oriented programs, where you can create masks with pixel precision. It’s also the kind of work where a graphics tablet is very helpful.