sharepoint enterprise – Restrict Search functionality to specific users

I want to restrict the search feature, in a web application/site collection, to limited user. it will like I will make a SP Group and only users of that group can use search functionality and rest of the user cannot search any thing.

Currently running an environment of SharePoint 2019.