How to make this kind of shape using BufferGeometry?

Maybe you can adapt the MultiForm geometry to your needs?

From the Collection of examples from discourse.threejs.org
MultiFormGeometry
see
threejsResources/MultiFormGeometry at master · hofk/threejsResources · GitHub