Books about messy queer characters?

I'm looking for books with messy, complicated queer characters who have messy, not always healthy relationships. I particularly love SFF, but am open to any genre (grounded, historical romance is lovely, for example). I'd especially love to see a trans masc protagonist, but I'm not picky. The only thing I'm not currently in the mood for is YA. Some books that I've really enjoyed include:

-The Broken Earth Trilogy

-The Locked Tomb Series

-The Radiant Emperor Duology

-The Machineries of Empire Series

-The Baru Cormorant Books

-Books by KJ Charles