Don't know about AVG but in BitDefender which I run I had to turn off the antivirus real-time protection, see pic. Only with this switched off would it extract from the .rar file.

Have a play around with the settings, my guess is you haven't found the right button yet.