@amadeus You need to statically link plugins to not rely on any external resources. Sadly JUCE changed the default to dynamic link when Jules left...
As for flatpak. Nobody should distribute plugins in that format, it's not just technically wrong (sandboxing DSP) but also violates all plugin standards out there.
We finally got fixed system wide locations standardized (thanks VST3, CLAP, LV2), only for flatpak to come along and ruin it.