I have not found filling nail and screw holes with a putty made of glue and sanding dust to be satisfactory. Any glue that I have encountered does not accept stains.
I find that Fam-O-Wood putty to work best and is available in various colors, plus it is not expensive and takes stain.
Don Dando