One of the issues might be that the Flatpak Firefox profile is not located in the expected ~/firefox directory, but instead in ~/.var/ due to Flatpak sandboxing. You can try resolving this by creating a symbolic link from the profile to ~/firefox.
I haven’t used this PDS tool, but I encountered a similar issue when using the --cookies-from-browser flag in yt-dlp.