You said it's a different subnet. Where is wireguard hosted?
Is the file share on the same machine you are rdping to?
Have you checked the local firewall? Iirc, windows will restrict with its firewall certain things like file shares to only it's local subnet while exposing esp to all subnets.
If it's a windows machine, test turning off Windows firewall. If it works, then turn the firewall back on and fix the settings