Depending on how you do this, there might be an easier way back.
adb shell cmd package install-existing
will reinstall an App uninstalled with adb shell pm uninstall --user 0
.
adb shell pm enable
will reenable an App disabled with adb shell pm disable-user --user 0
.