Tyrion in ADwD is in a terrible state of mind, and is not fond of anything or anyone. He believes himself a monster and all his women “false”. (Except Tysha). He’s mourning and blaming himself for what happened to his first wife - and he is blaming himself for a lot of things and deliberately acts like a monster. Tyrion isn’t thinking a lot back to Sansa during ADwD - all the quotes from that book taste wrong in my mouth and it would be out of context if I’d quoted one here for you. It’s very interesting, but Sansa thinks more of Tyrion (and fondly) than Tyrion thinks of Sansa.
As for the show, he also does not mention her - just like Sansa, Tyrion seemed to forget they were ever married. They did mention it in season 4, but since then they think the audience is dumb and forgot it ever happened. I cannot tell the show’s perspective, they both look like they had amnesia or something. I assume we might see some parallels (anti!parallels) with Sansa now that she’s getting married again - as for Tyrion…he may think back on Sansa fondly…I can’t tell. Tyrion in the show is doing much better than Tyrion did in the books.
I wish I could tell you more, but I can’t. The show absolutely gives nothing, they completely dismissed their entire marriage, and that was a shining opportunity. So now all we are left with is tiny headcanons.
Edit: I did forget to mention, that in ADwD there’s an ambiguous passage - it can be interpreted to both Tysha and Sansa, if you interpret Sansa then this is probably the first time he’s thinking back to her nicely, and honestly. I do love this passage, but I repeat, it’s ambiguous.
““What do you miss, Halfman?”
“Jaime, thought Tyrion. Shae. Tysha. My wife, I miss my wife, the wife I hardly knew.””