Hi,
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. Since it's an Ubuntu VM you can give a try to xrdp.
Please refer to the links below.
https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/enhanced-session-mode
https://4sysops.com/archives/activate-enhanced-session-mode-for-ubuntu-vms-in-hyper-v
Best Regards,
Ian Xue
If the Answer is helpful, please click "Accept Answer" and upvote it.