Reporting
The insects are probably a

The insects are probably a type of squash bugs. Removing the eggs on the underside of the leaves in early summer will cut back on adult bugs (but that's too late now). You can try to trap them under planks or newspaper in the garden as they like dark and damp places. You can also try to spray with neem oil (found in garden centers).