Trying to find a path within a path

I am trying to do the following, find a specific path within a given start directory and any subsequent ones within that start dir.

I started with the following which works; however as dirname data is so common I wanted to make it a bit more precise

$BaseDir = "C:\Users"
$NameToFind = "data"

Get-ChildItem $BaseDir -Recurse | Where-Object { $_.PSIsContainer -and $_.Name.EndsWith($NameToFind)}

$BaseDir = "C:\Users"
$NameToFind = "notes\data"

Get-ChildItem $BaseDir -Recurse | Where-Object { $_.PSIsContainer -and $_.Name.EndsWith($NameToFind)}

this does not work; I have tried variants of making $NameToFind a regular expression, but my skills with powershell and by the looks of my results my skills with regular expressions are very wanting.

Any suggestions as to how to tackle this would be much aprreciated