I created a file InnerFile.txt, a folder "InnerFile", and a second file InnerFile\ContentFile.txt. Using filename:myFileName, File Explorer only returned the "InnerFile.txt" file and the InnerFile folder.
Searching for "InnerFile" alone added the "ContentFile.txt" file.
It's definitely not exactly what you asked for but hopefully that helps to a degree.