See: #10373 (comment 1925486)
☢️ Flatpak hardcoding wasn't touched because the command escapes the .YML syntax and breaks it. Probably the only solution is to move the flatpak script commands to a .SH file.