You may be able to do what you want with the Blackhole audio driver if you can stand a little tinkering: https://existential.audio/blackhole

A little more user friendly option is some of the commercial apps from Rogue Amoeba: https://rogueamoeba.com/ Check out Soundsource or Loopback. There is a try before you buy.