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

The digiKam devs have nothing to do with any Flatpak version so cannot help you with that. Your best bet is to download the AppImage from digiKam - Download and use that instead. It should work even on your immutable distro.