When you use the word “few”, you are describing multiple things but as one group; the object of the sentence becomes singular, “a few weeks” and not “an few weeks”.
So by using “few” you have turned weeks plural into a singular group of weeks, a “few” weeks.
“Week” is a countable noun, but words like “few” and “some” are uncountable.