I found that if I use my Sound Blaster E5 headphone amp connected using USB then it works, I can record desktop audio using OBS on my mac.

In Apple menu, System Preferences, Sound, Output I choose “Sound Blaster E5 USB”
In Apple menu, System Preferences, Sound, Input I choose “Sound Blaster E5: What you hear USB”