Any decent-sized town or city will have homeschooling groups that organize regular activities to address that issue. Often parents will also form small homeschooling groups or pods that provide socialization opportunities during "class". Plus there are classic extracurriculars like sports teams, music, etc. Social media has also helped a lot with organizing and coordinating these sorts of groups.