Regex is not currently supported for find in page functions, so this won’t work at the moment. See Regex functionality for find and replace within obsidian.
I’d suggest opening the note in something like VS Code to do these kinds of workflows for now!