AMI events filter

Hi all!
I connect to Asterisk AMI and I want to receive only Newchannel and DialBegin events from the extension 222, for this i perform the following command:
Action: Filter
Operation: Add
Filter: (Newchannel|DialBegin)(\n.*)*Channel: PJSIP/222-

Asterisk returns success, but when I do call from 222 to any phone, it does not come any event. What am I doing wrong?

I do filter to AMI events using php and reg expresion , I havent try filter action so I’m mot sure if you are using the correct syntax , take a look here