Search the entire HD for filenames that contain a particular string
I am trying to delete remnants from an app with file names that contain the string com.XYZ but I cannot locate these files using the Find button on the Finder window or Spotlight. As a test I searched for "com.apple.LaunchServices", which I know is in ~/Library/Preferences but I do not get any hits at all. How do I search the entire hard disk for all files or folders whose names contain a particular string?
iMac 27″, macOS 12.5