You might want to double-check the "App volume and device preferences" in Sound settings and make sure the recording software has microphone/system audio permissions under Privacy & Security settings. Also, if you're using something like Xbox Game Bar or a third-party app, trying an alternative like...