I'd definitely go the route @Sebastian suggested. cups
is a pretty foundational package. By removing it you have also removed quite a number of other important packages.
Just for reference these are the packages that depend on cups and will be removed if it is removed:
cups-devel canon-ufriilt-common opera-stable
mongodb-compass budgie-control-center x2goclient freerdp
mullvad museeks wire libreoffice-common discord pycups
simplenote vivaldi-snapshot qt6-base
epson-inkjet-printer-escpr gutenprint signal-desktop
heroic-games-launcher kitematic bitwarden-desktop etcher
element vscode cups-filters streamlink-twitch-gui
libgtk-2 cups-pk-helper obs-studio logseq mailspring
beekeeper-studio qt5-base libgtk-4 keybase boomaga
vivaldi-stable darktable gnome-settings-daemon samba
ghostscript pencil scribus dymo-cups-drivers libgtk-3
cups-32bit print-manager freerdp2 hplip cef-minimal
gnome-control-center splix cups-dbginfo brlaser brave
hplip-drivers
Some of those, like libgtk-3
are VERY important on GTK-based desktops like Budgie/MATE/GNOME/xfce
Rolling back to the point before you removed cups
and it's reverse dependencies is the best way to hopefully get your system back in order.