Extend Catalina's privacy protection to other folders
No.

The restricted file locations are detailed here PrivacyPreferencesPolicyControl.Services and you can't change them.

You would have to move ~/foo to Documents, Downloads, an external drive, or another restricted location.