It might work, but it is important to note that, despite it also being a Raspberry Pi brand product, that is very different than the Raspberry Pi Zero W products I suggested.
The Zero W is a single board computer (SBC). It is functionally equivalent to an older, low spec desktop or laptop computer, running a standard Linux operating system, except in a more compact and versatile form factor that makes it more suitable to incorporating into projects.
The Pico 2 is a microcontroller development board, like a more powerful version of an Arduino UNO. It does not run a personal computer operating system. It is true that it does have a USB host capability. However, you are going to be working with it at a much lower level than would be the case with a computer where the operating system will handle all the USB stuff for you and simply provide you with a file you can open to communicate via the port.
In addition, we most often see people use the USB host on microcontroller dev boards for connecting USB HID devices such as mice, keyboards, and game controllers, and perhaps for MIDI devices as well. It is less common to see them used with virtual COM port (VCP) devices, since we would generally just use the UART interface on the board when we need to do serial communication. So you will likely find that there is less information, libraries, example code available for interfacing a Pico 2 with a VCP device
This means that, even though it is likely technically possible to use the Raspberry Pi Pico 2 board in this application, I think you are going to find it to be much more technically challenging to accomplish compared to a Raspberry Pi SBC. If you are up for a challenge and can persist through the inevitable difficulties, I'm sure you will be able to achieve success.
In addition to the disadvantages, there are certainly advantages to using a microcontroller board like the Pico 2 instead of an SBC. The microcontroller boards are cheaper (the SBC price is deceptive because you will typically end up spending much more for accessories like a good quality SD card and beefy power supply) and more power efficient (especially important in a battery powered application, but also relevant in that you can get by with a cheaper power supply). Although having a Linux operating system can be convenient, it also introduces a huge amount of complexity into the system under the hood, which might cause the device to be less reliable/deterministic when compared to a relatively "bare metal" program running on a microcontroller. And if you are interested in Arduino then the microcontroller dev board is a win because you have the option of writing your program using the Arduino framework, which is not really an option when using an SBC.