How do I identify records with same mail domain using API?

How do I identify records with same mail domain using API?

I want to get the count of records with email domain "@xyz.com"  But using regex in search query API doesn't yield desired results

I queried the records that ends with @igdtuw.ac.in , But this isn't giving any results.