Unable to change COM port for upload

Hello,
I am using Platformio with ESP32 and everything was working for long time.

Now when I upload the firmware to the target, the following command is executed:

Executing task in folder Focuser: C:.platformio\penv\Scripts\platformio.exe run --target upload --environment esp32doit-devkit-v1 --upload-port COM8

The problem is that the COM8 does not exists (the correct com is COM14).
In the platformio.ini I have set:

[env:esp32doit-devkit-v1]
platform = espressif32@3.0.0

board = esp32doit-devkit-v1
framework = arduino
board_build.partitions = default.csv

; Serial Monitor options
monitor_speed = 115200
monitor_port = COM14

; Serial Upload options
upload_port = COM14
upload_speed = 1152000

Using the terminal I am able to use connect to COM14, as expected.

I am going crazy I have not idea where the COM8 is taken.

Thank you

After fighting for hours I find the solution:
Right click on the “plug” icon on the bottom (PlatformIO: Serial Monitor) and enable PlatfomIO: Port Switcher. Then select the correct port on the same bar.