Update regex filtering to fix displaying allowed message when not a regex