It happens exceedingly often even when there’s no other metafiction elements in the text, and it always feels like the author turning around and doing an over-exaggerated wink to me like, “ooh, get it?”
Again, it happens enough that I don’t think it bothers most readers, but ugh, I do not enjoy it.