Regex issue in aggregation

I’m using regex in aggregation match stage.

{
title: new RegExp('sowrds-title', 'i')
}

now, if the data is like

title: ‘sowrds - title’

it does not get match.

any solution to this ?

You have extra spaces on both side of the dash in

compared to

yess, I know , I want to ignore the whitespace charachters