How can I include a metafield in my search filter?

I am wanting add an search filter that will have option to filter based to metafiels. Like if there is a metafield named “Brand”, it it add choose brand, when a brand gets choosed it will show results of that particular brand. Like this: