I get that! One thing you should look into is group meetups - My local library has knitting, reading, and writing groups as examples, and maybe you'd also be interested in groups focused on things like parenting? All of these types of clubs are not only great to learn new hobbies, but to also meet up with others who share similar interests! Friendships might develop from these places too
You could also look into making contact with people taking the same course as you - Things like whatsapp groups might be a good way to keep in touch with others, and for a lot of courses these groups already exist. If they don't, try making one! Hopefully many people would be interested