vTaksDelay stops scheduler without resuming it after a few calls

What is the priority of UART Rx interrupt? Also, have you changed the HAL Tick Base using STM32CudeIDE?