Getting string not matched error while fetching data through mock-api

i have a regex field called pan_number in my pan_details schema .whenever i try to fetch record by providing a pan_number in the url and running it through command prompt i’m getting string not matched error

url : curl -H “X-API-Key: 2ca86990”

schema “PAN_DETAILS”
data = generate 1
data[‘pan_number’] = params[‘pan_number’]

It looks like it’s working for me. Were you able to resolve your problem?