How to tell Digikam I want raw files opened with Darktable?

You’ll need to use the flaypak-spawn command to launch apps outside the flatpak’s sandbox.

For digikam to launch darktable, something like flatpak-spawn flatpak run org.darktable.Darktable <file name>