/dev/ttyUSB0 in the example code is just an example. That would be the name of a USB-UART adapter plugged into Bela. The available ttys can be seen by running ls /dev/tty* in the console at the bottom of the Bela IDE. The one that represents the USB connection to the host is called /dev/ttyGS0 and it operates at a speed of 115200bps .
Currently it is configured as a login shell, so if you use that, only some of the characters will be sent to the Bela program, while others will be grabbed by the shell. You should therefore also run in the console at the bottom of the IDE:
systemctl stop serial-getty@ttyGS0.service
This will stop the shell on ttyGS0 till the next reboot. If you want to disable it permanently, run
systemctl disable serial-getty@ttyGS0.service
(you can revert either with start or enable respectively).