You can do this:
\s*((?:\s*?\b(?:fixed|local|scroll)\b){1,2})
or
\s*((?:\s*?(?:fixed|local|scroll)){1,2})
(if word boundaries are not needed)
Explanation: since \s*
is by default greedy, all leading white spaces are "eaten" before the catpure group.