AMS117-3.3 is giving 4.3v and also magnetic field in PCB
Throw away that pcb before it kills you and burns down your house - I’m not joking. As others have observed, the clearance between tracks carrying mains voltages and low voltage tracks is nowhere near safe.
Have your mains wiring down one end of the pcb well away from the low voltage circuit. What current do you expect to switch with the relays? What voltage? I’d also suggest you use different relays like the omron G2R series - these are easier the design the pcb for and to ensure adequate clearance. The relays you’ve used require slots in the pcb and more care in the design. Do not use copper pours in the mains region!
Consider using a tpic6b595 instead of transistors and a 74hc595.
The esp12 module needs to be placed carefully - read the datasheet guidelines.
Throw away your current pcb before it becomes the first and last one you design.