Okay, this is actually kinda hilarious. Apparently every instance of “message preview of chat with contact X” is replaced with “typing indicator” when contact X is typing, not just the one in your main messages list.
So when you search through your messages with one specific contact, and therefore have a list of “message preview of chat with contact X” instances on screen and they then start typing, this is what you get.