If you install immich in your homelab, you can just transfer all the images off your device very easily with the immich app.
Probably the only way to keep them private from big tech. But the long term solution is to not use the official Android or Apple systems and to root your phone and install cyanogenmod or something similar without Google apps.
But that means some apps wont work at all, so thats the price to pay for that freedom.
Or you can just buy a separate camera and stop using your phone for that.
I can give you a docker compose that will just work if you want, as long as you have a domain name and a ingress controller running. But yes, its not easy.