Favorites disappeared from dock
Reset all Ubuntu dock settings to the factory default of Ubuntu 21.10 with the following command:
gsettings reset org.gnome.shell.extensions.dash-to-dock
This will reset all to the default, which includes a trash icon on the dock. You now can add your own favorites and remove the ones you do not want.