Fix ag/search calls with regexp