Hi Andrea Cusinato,
Unfortunately, it is not supported to pass through USB devices to VMs in Hyper-V. USB devices can only be redirected to VMs through Enhanced Session / RDP. You need to check to see if the USB device works normally when it's redirected to the VM.
https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/enhanced-session-mode
Since it's an Ubuntu VM you can give a try to xrdp.
https://4sysops.com/archives/activate-enhanced-session-mode-for-ubuntu-vms-in-hyper-v