How could I create this shape?

Hi, I’m trying to model this shape to make a weapon’s trigger, but I’m having some shading issues:
I created the shape like in this image, extruding those parts, and I’m having some shading issues:

And very strange shapes when using subdivision subsurface.

I wanted to know how could I create this shape in a better way to avoid this kind of errors.

Seems like u have extrude the whole faces or just the edges?

Post a wireframe.

Remember to use support loops when modeling with the Subdivision Surface modifier.

The whole face