Few things that you could try:
The Blender Python API provides access to the quadriflow_remesh function (Requires Blender, and a triangle mesh is needed as input)
https://www.hellotriangle.io/ You will need to split your 2D polygon and create patches of quads between pairs of line segments using the connect() method.
https://github.com/hjwdzh/QuadriFlow (Also requires a triangle mesh as input. Not a Python package, but you could run this as a subprocess)