Problem routing nets after I flip a part

I assume the two THT pads are intended to be used as a replacement for vias?
If so they must have the same pad number as the pad they are on top of. (All smd pads of the footprint have no pin number assigned -> this means kicad does not allow a connection to them at all.)

In your case give all right footprints the pad number 2 and all left footprints the number 1.

This might be a good read for you: How does KiCad know which symbol pin represents which pad of the footprint?

Also the section about thermal vias in this tutorial: Tutorial: How to make a footprint in KiCad 5.1.x (From scratch)?

Also strange: One of your tht pads has completely different layers assigned than the other one. You might want to look into that as well. For that this topic might be useful: What is the meaning of the layers in pcb_new and in the footprint editor?