Run flatpak-builder
to configure the build environment, download dependencies, build, and install
flatpak-builder build io.elementary.screenshot.yml --user --install --force-clean --install-deps-from=appcenter
Then execute with
flatpak run io.elementary.screenshot