The Finder is lying to you. I first posted about this in July 2023: Finder changes display of Library > Containers.
You can see the true folder name if you drag one of the Safari’s to a Terminal window. On my machine there are two: com.apple.Safari and com.apple.Passwords-Settings.extension.
Rich Siegel (Bare Bones Software) told me “The illusory file name display for application containers in the Finder is a misfeature that was introduced in macOS 12”.
I reported this to Apple in May 2024. My feedback status is still Open, with no response from Apple. Maybe we need more people to report this as an issue.