This is a bit of a surprise. Raspberry released a GCC 15.1 version of their Pico RISCV toolchain. That's a more recent version than the current (at the time of writing, 14.2) version of the mainstream ARM toolchain.
If you are using the VSCode Pico extension, select RISCV_ZCB_RPI_2_1_1_3. It 'll install the toolchain for you.
note: I wish they 'd use the GCC version numbering