Obviously ClamAV only does what's in it code, but pretty much all proprietary AV software collect samples by default based on rules deployed by developer.
Windows Defender do have automatic sample submission, but according to documentation only automatically submit files that are "safe" to not no contain PII:
It might request user approval to submit non-executables, but again we can't know when and why Microsoft might decide to override defaults. Technically data collection pipeline is here.
> I mean the AV software being used as a malicious agent.
See the problem: there is absolutely no way to tell whatever AV software uploading your sensetive documents to it's servers for legit reasons or because it's spying on you.
What do you mean as "backdoor"? Any anti-virus software is a backdoor.
Anti-virus software is rootkit on your system.
It can literally upload any file on your disk to the cloud.
This is by design and this is why you dont want to run Russian state-controlled company software on your system.