Mac App “cDock” - Customize Dock Theme
For such cases? This article will show you how to restore the Dock to its default settings.
Mac - Show “Library” folder in home folder in Finder
Then the Dock will return to its default state like this. The “?” icon in the Dock seems to appear when the app is uninstalled and not found.