Adding Search Bar Validation

Hi Team,

We’re looking to configure a Search experience so that it primarily searches for zip codes. Is it feasible to add validation to the Search bar to prevent text characters or to only accept 5 digit numbers. If so, what would be the best way to implement this in the experience, as well as within the search bar integration?