Nothing wrong with major and minor pentatonic, but I suppose it depends on what material you are playing.
If you have a search for the '7 modes of the major scale' that would give you a good start as well as the 'harmonic minor scale'.
The modes work in a similar way to the positions of the pentatonic scale in that they are all parts of the major scale played in a different part of the neck, but it does allow you to play over different chords and give a different feel rather than always playing in your root scale.
People such as Vai and Satriani use these types of scales a lot and often concentrate on one scale at a time to give a specific sound for an instrumental melody, but a lot of guitarists don't use scales as a limit, they use bits of them as a base to play something that sounds right to them.
Although I did learn scales, I just worked out (what I believed to be) the relationship between the root and the remaining notes in the scale (the intervals) and the differences between each mode, and then played based upon that to form my own licks and style.
Although still broadly mixing major and minor pentatonic I then throw in other notes (such as the minor 3rd, 7th, 9th etc) as I choose to make the sound that I want. So a solo broadly in the Chuck Berry style of pentatonic might suddenly have the flat 2nd from one mode combined with the 3rd from one of the other modes. Hence, I really couldn't play any of the major scale modes well now, I just have absorbed the information to suit my own needs.
I effectively worked out the differences:
Ionian = basic major + 2, 4, 6
Dorian = basic minor + 2, 6
Phrygian = minor + b3, b6
Lydian = major + #4
Mixolydian = major + 4, b7
Aeolian = minor +2, b6
Locrian = minor + b2, b5, b6, b7
If you were playing the major scale in C, then any of these scales would sound right over a C major progression, but it gets more interesting if you played the Dorian scale (still in C major) now based on a D minor progression (D minor being the second interval of C major). Although the progression might be D minor, a D dorian scale is still essentially playing in C major, but now gives a completely different feel.
I am sure there are far more schooled theorists than myself who can agree or completely shoot down this information... and I give no guarantee that I am correct!
Just have a google and I am sure there will be a YouTube channel dedicated to this information.