Using Multiple Serial Ports in Arduino Nano BLE SENSE for interfacing MATLAB and Python simultaneously

Hello all, I have developed a program for which i expect to receive inputs from MATLAB model via Serial Interface, produce an output which shall be sent to serial port and plot using python. I am trying to achieve this simultaneously like a live input and live output.

I am able to see 3 COM ports in Arduino IDE and one is mapped to NANO, when i tried using serial() and serial1() or serial2(), i get compilation errors. how to connect multiple COM ports to NANO or is it hardware limitation to use only one?

NOTE: I tried using serial plotter, mine is 1s loop system and also serial plotter gets struck during that delay and struggles to print multiple values simultaneously. If serial plotter is open, Serial Interface to MATLAB fails. Same way with python script to do serial plotting

Nano 33 BLE Sense is listed as having only 1 UART:

Don't know much about it, beyond that.

Beat me to it. Same documentation that I looked at, says the same thing. Only serial1.

That would be the native USB interface, used as Serial() in your code. You can have one other hardware serial port (Serial1() on two digital pins) and a software serial port.

Note that the native USB serial can have two different COM port names, depending on whether the MCU is in bootloader mode or program mode.