It sounds like you're talking about garden-path sentences [0], and in particular: "time flies like an arrow; fruit flies like a banana" [1]. These are sentences whose structure tricks the reader into making an incorrect parse. My favourite of these has always been: "The horse raced past the barn fell".
[0] https://en.wikipedia.org/wiki/Garden-path_sentence
[1] https://en.wikipedia.org/wiki/Time_flies_like_an_arrow;_frui...