L and R poles are flipped using Rigify When I generated the rig I noticed that the L and R poles (set to the proper feet by default) are flipped. This obviously causes quite a few issues. I used the metarig in 2.91 and only removed the facial controls.
Make sure your metarig's legs are set up correctly.
The only bend allowed in an IK chain is the one to indicate in which way it should bend. If you do it wrong, Blender will orient your IK wrong.
Also check your bones' orient.
As you can see below, I just shifted the metarig knees on the side and it generated the same way as yours.