Code doesn't work for new Arduino Nano 33 BLE board

Welcome to the forum.

There were changes with the board support when Arduino separated the mbedOS devices e.g. Nano 33 BLE, Portenta and the new Nano RP2040 Connect. The changes where intentional and can break some code that was written with version 1.x.x (now marked deprecated in the boards manager).