I can’t, of course, make a diagnosis on the basis of only a short letter. I can only offer some things for you to think about.
It may be that you don’t like to be around people because you don’t know how to be comfortable in social situations. Apparently, you are skilled enough to make the initial connection. You do have some friends. But then you get afraid to go to the next level. You may be justifying your fear by trying to convince yourself that people are only tools. But that’s a rationalization. I think you are lonely but don’t want to admit it.
I suggest you face your fears and get some training and support for developing social skills. Group therapy is often helpful. Group therapy provides a safe place for people to get feedback about how they are interacting with the other members of the group and to practice new ways to be with other people. Some individual therapy as well will help you conquer your feelings of inferiority.
I wish you well.