The Nano 33 BLE Sense board has an inbuilt RGB LED which is connected to pin 22, 23, 24.
This information is available on the Nano 33 BLE's boards variant file.
Below is the general sketch to play around with the RGB led on the Nano 33 BLE boards and user can modify the sketch according to the requirements.