The safest way to do this is using a road warrior VPN configuration. This will allow your remote devices to securely connect back to your home network, at which point they can access the Windows shared folder almost like they were present on the same network.
There are some nuances here, but you can take a look at the process. I recommend using Wireguard which is available on all major platforms, including OpenWrt.
Security vulnerabilities have been found with both SMB and NetBIOS that allow remote users to gain control or execute malware on unprotected computers in home networks.
~From Page 10 (ยง3.1.3. NetBIOS and SMB โ TCP/UDP139 and TCP/445) of: "Port Blocking - A BROADBAND INTERNET TECHNICAL ADVISORY GROUP TECHNICAL WORKING GROUP REPORT" (circa 2013) https://www.bitag.org/documents/Port-Blocking.pdf