Most people learn scales the long, hard way.
It doesn’t have to be that way.
Memorize scales not only by playing them but, by writing them down, visualizing them, saying the note names and playing them in multiple sequences (instead of just ascending and descending).
The more ways you interact with scales, the easier it will be to memorize them.