I am using regex: `[(]?(((\d)([() .-]+)?)+){7,18}|\*\d{3,10}|\d{3,10}\*(?!/)`

How can I change the attached regex to not recognize the numbers that are part of a URL to the Facebook as phone number, but could recognize a phone number that is not part of a URL?

The URL:
<https://www.facebook.com/pages/Fashion-24/151055822249094?fr=ts>

The above regex detect "151055822249094" as phone number.