I have a weird chord progression that I'm trying to compose a solo over:

Bm7 - Bdim - Em7 - B

I've been able to kinda make the Bm pentatonic scale work across it by playing it straight across the Bm7 and Em7, throwing in the b5 over the diminished chord, and then swapping the b3 for a 3 on the B.

Is there a better way to approach this from a theory standpoint?