Hello Akshay Shambhu Bajpayee,
Thanks for reaching out. You can filter for the extension attributes using the example below:
https://graph.microsoft.com/v1.0/users?$filter=extension_07bdff858d154d1786c9f77dd25f5ea7_market/any(s:s eq 'es').
You can find more information on Graph filtering here https://learn.microsoft.com/en-us/graph/filter-query-parameter?tabs=http.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.
Thanks.