What about all these raspberry pi hats with cell modems? Are they missing anything like usable IMEI numbers or proprietary stuff? What's stopping an RPi compute module 3G/4G/5G DIY linux phone?

Battery life is probably awful, mainly.

The battery life would suck? It's not about whether you can build a phone, it's about whether you can build a decent phone.