@vivek singh Thanks for reaching out and apology for the delay. I believe you might have already resolved the issue. But in case you haven't found the solution and for the community facing the same issue posting the resolution for your issue.
As you have already shared the document the filter should be of type string as mentioned here. The filter should have the ODATA query as below. For supported filter status values you can refer to this.
const data = workflow.list(Resource_group_name, workflow_name, { filter: "status eq 'Failed'"});
Let me know if you are still facing the issue.
Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.