Thinking of names, IDs, user IDs, emails, etc.
It may be hard to impossible without a big name database etc. and likely is up to the user to achieve this by setting for example
setCustomTitle see https://developer.matomo.org/guides/spa-tracking
Maybe could offer to exclude all URL parameters, a specific path length (like force Matomo to always only track the first path of a URL path), etc. Maybe this could be even configured per page and support regular expressions etc.
also Interesting article see https://brianclifton.com/blog/2017/09/07/remove-pii-from-google-analytics/