Search and Replace with Regex [SOLVED]

I got it working.
Install the obsidian-regex-replace plugin.
Run the command “regex find/replace” and find \[([^\[]+)\](\(.*\)) and replace: $1

and it will remove external links in the note