Bulk 301 redirect

HELP WITH RULE WRITING

I have a blog that is in the directory: dominio.com.br/blog/ and I’m going to migrate the articles to the main domain and be without the /blog

I’m going to have to do a 301 redirect of all posts, but I have over 200 articles.

How do I create a rule in Cloudflare to make this automatic 301? The links will remain the same, it will only be without the /blog

EX: domain.com.br/blog/example-of-article to domain.com.br/example-of-article

Assuming the naming convention stays the same this can be accomplished with a single rule.

example.com/blog/* -> 302 Redirect -> example.com/$1

Thanks