It's a known Android 15 QPR2 bug on the stock OS. Happens here too and it's looking at being resolved. Your mic isn't actually in use.
Currently fixing this wouldn't the top priority because of recent major circumstances. Team are desperate in working towards a smooth port to Android 16 (we don't have early access to the source) and general updates / security patches above all.