there's two types of geoms: electron geom and molecular geom
you have 5 region and two lone pairs right?
maybe you need to draw it to be able to conceptualize it better
e geom will give you a trigonal bipyramidal shape (all electrons are considered, bonded or not)
molecular geom will give you a T-shape (only the bonds with another atom is considered, not the lone pairs)
drawing it three dimensionally will show you the T-shape