Hmm...if you're absolutely sure you are playing F minor Pentatonic (F, G#, A#, C, D#) against a D7 (D, F#, A, C) , I'm not sure what sounds good to you. To me, it sounds bad but that's just me. You're playing:
F - 1/2 step off from the 3rd of D7.
G# - the flat 5th of D7
A# - the sharp 5th of D7
C - That fits fine since it's the dominant 7th in your chord.
D# - the flat 2nd of the chord which is a lot of tension.
If you're lick starts and stops on C, I guess I can see how that would work in a way. Please understand that I'm just analyzing the chord and scale and not accounting for taste. I tried playing around with that combo and it didn't sound "right" to me but if it works for you, who cares.
