With actual winetricks, when installing a dll in a custom wine prefix by using WINEPREFIX=<custom-wine-prefix> /usr/bin/winetricks ole32, I got a message box
regedit: The file C:\Windows\Temp\override-dll.regnot found
and in the command line i see
Using native,builtin override for following DLLs: ole32
++ WINEPREFIX=/home/<user>/.wine64
++ /usr/bin/wine64 'C:\windows\regedit.exe' 'C:\windows\Temp\override-dll.reg'
 
which means that the specified wine prefix has been ignored.
/usr/bin/winetricks --version
Executing cd /usr/bin
20250102 - sha256sum: 657e0c4260424723476aea7668414a10ed859baf4660f96626694df9b2398460