According to Apple's spec page, it might work at 5K…
"For Mac models with Thunderbolt 3 driving Pro Display XDR at 5K resolution, USB‑C ports have USB 3.1 Gen 1 data transfer speeds."
This assumes that TB2 to TB3 adaptors work with the display. TB3 seems to be an official requirement though.