The only thing I support being flaky is something a team member made or purchased from a bakery. Otherwise, it's just unreliable code.
"Ultimately, flaky tests stunt the pace and quality of software delivery, negatively impacting both your company’s product and the software developers that help lay the foundation for its success.”
https://www.infoworld.com/article/3711882/its-time-to-fix-flaky-tests-in-software-development.html