If a regex cannot be parsed, silently return out and don't run the
script. May be a good idea to display a toast message saying the
script didn't run.
Also only reload the chat if a chat is actually loaded.
Signed-off-by: kingbri <bdashore3@proton.me>