Acl reg format, check the url complies with the format

I am trying to check that url is like:

/OTAP/simSwap?newimsi=125784326733643&msisdn=345645665444655

but when I add something after ? like newimsi={0-9}&msisdn={0-9} the acl doesnt work:

acl begin_url path -i -m reg ^/OTAP/simSwap?* → this is running
acl begin_url path -i -m reg ^/OTAP/simSwap?newimsi={0-9}&msisdn={0-9}* → NOT

How could I check the format of url whithouts values?