Regular expression not supported by Javascript? [duplicate]

I’m trying to use a regular expression, I tried several changes and searches but none worked correctly.

regular expression
https://regex101.com/r/lK1tD6/1

var reg = '(?:(?<=^)|(?<=D))((00|+)?55(s|.|-)*)?((()?0 ?d{2}(?(5))|)(s|.|-)*)?(9(s|.|-)*)?d{4}(s| .|-)*d{4}(?=D|$)'gm
var search = value => value && value.match(reg);

var content = '+55 55 55555-5555';
var phones = search(content);
console.log(phones);

Thanks in advance đŸ™‚