Normally, I use sharpen with a threshold in such cases. Contrast EQ, with the right frequency band selected, can also work well.
There was a thread here with a technique for sharpening edges (I have not tried it): Darktable Tricks
2 Likes