Register attribute not implemented in v5.10

I am using Rheolef, which calls Paraview to render meshes. At one point, the script (which can be found here) calls (line 160) the function CreateScalarBar of the simple module, which calls (line 1982) the Register method of servermanager, which is not implemented. Therefore, I get the following error:
AttributeError: module ‘paraview.servermanager’ has no attribute ‘Register’

How can I deal with this error in order for the rendering to work ?

Environment
Ubuntu 22.04, installed Paraview using APT sources (python3-paraview and paraview)
paraview version 5.10.0-RC1