Sorry, I have found the solution myself, directly after posting this. The solution is mentioned in the following post: Random Flatpak run permission errors - #4 by salience.
After rebooting the flatpak permission problem is solved.
Sorry for bothering…