L362 Cool bass run in Em using scale substitutions

Theorywise im playing in a Em dorian mode (E, F#, G, A, B, C#, D) and here im using scale snippets from the F# minor pentatonic scale (the first part) and the Bminor pentatonic scale (the second part)
The Em dorian mode is starting on the 2nd step of the D Major scale, and that scale contains
3 major chords/scales

D Major (Ionian mode or 1st step/mode)
G Major (Lydian mode or 4th step/mode)
A Dominant Major ( Mixolydian mode or 5th step/mode)