See conversation with Octave maintainers here: https://savannah.gnu.org/bugs/index.php?60319
Original request to Octave maintainers:
"Hi there. Description of the request: Add possibility to install the extra Octave functions and packages as Flatpak add-on, right from the Flatpak install page of Octave. Thank you for considering my request and keep up the good work"