can I use the extractor in regular expression
You can use variable inside your regular expression as soon as your variable exists when it has to be used.
But be careful the extractor panel will not evaluate your variable until you execute a test or a check virtual user.