Check https://github.com/GoogleCloudPlatform/python-docs-samples/tree/main/dataflow/flex-templates/pipeline_with_dependencies#build-the-flex-template
You should build your SDK_CONTAINER_IMAGE first and use it like this
--image $SDK_CONTAINER_IMAGE
not
--image-gcr-path