The bug
When teleporting into an ungenerated chunk, the game will initially display Waiting for chunk... until you reopen the debug screen or enter a new biome.
Linked issues
is duplicated by
Attachments
Comments

It should not be necessary for the player to force the display of the chunk information manually. That's not a fix, it's a workaround. Refreshing the chunk information should happen automatically. It happens automatically in other circumstances, eg: when determining the regional difficulty, which is initially displayed briefly as if the chunk is zero-age.
Teleporting is not always a one-shot. Sometimes teleporting can happen repeatedly in a loop. This is a common technique for pregenerating chunks.
Can confirm in 20w51a.

Can confirm in 21w44a.

Can confirm in 1.18 Pre-release 1.
Can confirm in 23w03a.
Can confirm; however, closing the debug screen then opening it again will display the biome.