Issues flashing Arduino nano 33 BLE with PlatformIO on VSCode

Hello, i’m having some issues while flashing my Arduino nano 33 BLE board using PlatformIO in VSCode. The thing is that the program builds and uploads to the board correctly, but it doesn’t work on the Arduino. For example if I upload a blinking LED program, the Arduino doesn’t do anything, however if I flash the same program using ArduinoIDE, it works perfectly.
When I use PlatformIO to flash Arduino, after that my PC is not able to recognise the board too and I cannot flash it again without reseting the Arduino.