Alternatively, if you want to remove the search bar, but keep the default launcher, you can sudo apt install adb (or go to Minimal ADB and Fastboot if you have a Windows computer), connect your phone to your PC and run adb shell pm uninstall --user 0 com.google.android.googlequicksearchbox to remove the package.
Edit: I’m not 100% sure that this is the correct package, maybe you have to try a couple until you find the responsible one.