Watch the Skipping Stones online guitar lesson by Jon Finn from 30 Melodic Modal Rock Licks You MUST Know
This lick combines the Mixolydian (major scale with b7 sound) with chromatics and bluesy-sounding textures. One potential pitfall of trying to use scales when improvising is staying so rigid in the scale pattern that you miss some nice opportunities. This is a good example of a slightly less rigid version of Mixolydian.
Many of the chromatics are used to create dissonance ("wrong sounding") that resolve easily to "right sounding" notes. In my view, there is really no such thing as a wrong note, only unintended ones. There's a big difference. Check the notation and tablature to get the finer details. Practice with the backing track, then invent your own version of this lick!