To use redirects on Cloudflare Pages, declare your redirects in a plain text file called _redirects without a file extension, in the output folder of your project.
As I’m using Hugo and the project will be built in a public folder, I moved the _redirects there, removed the public folder from my gitignore and it worked. Thank you Walshy!