In previous versions such as 1.19.4, on death toggle sprint would stay toggle if it was toggled before death. In 1.20 if toggle sprint was toggled on before death, it would not be toggled on after death like in previous versions.
Related issues
is duplicated by
Comments

Yeah, definitely an intentional change; the whole player state is reset on respawn.

I can confirm this happenes in all 1.20+ versions.
It's mainly annoying when you play on minigames servers where you die often and when you respawn you have to enable sprint again.

Resolution: Works As Intended
No need to confirm for new versions.
I'm pretty sure that this was an intentional change done alongside the fix of MC-237042, but I can confirm this, nonetheless.