Diabetic Data Questions

I've put a few posts here since I was diagnosed in January with T1 and now that things are under control for the most part I want to do some personal analytics. I've searched the sub and online for what apps have CSV output and the count seems fairly low or the CSV just aren't detailed enough. So here is what I am looking for.

An app or hub that can give me a csv with these plus time and date, obviously: - Glucose readings, preferably with tags - medications, mainly just insulin but others would be nice - Exercise - Sleep - carbs, protein, and fat, they all matter - optional but appreciated is calories and micro nutrients

The closest thing I've seen is Apple Health with the use of some export apps. I use Android currently but am probably willing to switch if I have to since I can trade my phone in to switch, although I've considered just making an app myself. Also I'm in the US since sometimes that's a thing to know.

Let me know if your suggestions and if there are any meters, pumps, or CGMs that are especially data nerd friendly I'm starting to look at a pump or CGM, probably pump first.