FYI @Auliyah openmc.RegularMesh is a class [Docs], not a attribute.
openmc.RegularMesh
class
Solution
mesh = openmc.RegularMesh()
Hope this will help you.