How i can use a regex backreference in @angular/forms validators pattern?

For my example i have this regexp (valid in java) but not working with JS,

^(?!.*(.).*)d{3}$

I want like to convert the backreference () to JS friendly expression.

Source: New feed
Source Url How i can use a regex backreference in @angular/forms validators pattern?