Despite entering everything as mentioned in appium log filtering still getting this error

Fatal Error: The log filtering rules config ‘[object Object]’ has issues: [
“{"rules":[{"replace":"*****","path":"body","matchers":[{"type":"regex","pattern":".(Simp)."}]}]} → Must either have a field named ‘pattern’ or ‘text’”
]
at init (/usr/local/lib/node_modules/appium/lib/main.js:253:15)
at main (/usr/local/lib/node_modules/appium/lib/main.js:345:22)

Please provide proper steps to reproduce your issue.