Some QGIS plugins require Pythobn package dependencies that are not included in the Flathub image by default.
The Contour Plugin needs numpy and matplotlib to be available.
pip inside Flatpak
#
The Flathub feedstock repo on Github demonstrates how to add these dependencies.
flatpak run --devel --command=pip3 org.qgis.qgis install numpy matplotlib --user