How to prevent to some programs access to some hardware? (Windows exe-software)

Is there a way to restrict access for some programs to some hardware? Probably there are some Software? Proprietary or open-source, whatever.

For example, I would like to disable for Adobe Illustrator any access to bluetooth.

or E.g. I would like to disable access to soundcard for Autocad.

And so on and so on.

At the moment I can imagine only two ways – to use VMWare Workstation or to use an Antivirus, which can block access to network/camera/hdd – but obviously are not solution.

My system is Windows 11. Thank you