In iOS 18.4 or later, you can hide the recent searches that appear when you’re typing in the search field in Safari on iPhone.
Go to Settings > Apps > Safari.
Below Search, turn off Show Recent Searches.