@AlexH149, fwiw, it took me a lot of practice to be able to get this shape to sound good. I had to experiment a lot with my index finger position, as well as the middle finger. I find it easier if I barre 3 strings with the index finger, it allows me to curl the middle finger more. Also, I keep my thumb low on the back of the neck, as for barre chords.
As I said, it took a lot of experimentation and practice.