Did something changed with the wine environment?
I used a script for ages and few days ago it started giving me troubles
wine64-development "$HOME/.wine/drive_c/progs/app/app.exe" \ $(winepath-development --windows "$NIXPATH")
NIXPATH is a file in my system
wineconsole-development I can create dirs and files into that directory, privilegies of the file looks fine.
wine-5.6 (Debian 5.6-1)