Sony’s Xperia phones are fantastic and the bootloader can be unlocked on most models (check the sony bootloader unlock webpage to check). Xperia phones have a micro sd slot, headphone jack, and physical camera shutter button. I have an Xperia 1 iii running LineageOS w/microG and it’s fantastic and stable. Bit of a learning curve to set it up though.
Depending on where you live, I would recommend the new Xperia 1 VI; Sony is promising support for three OS versions and four years of security updates. It’s not great but it is far better than what they previously promised with their phones.
It deeply saddens me when people pay money for locked down hardware that’s not only designed to spy on them, but their family, friends, and neighbors as well. Ring, Amazon Echo, Google Home, that creepy Facebook robot screen…all insecure spyware.