Butt swab?

I have my 32-week appointment next week and my OB mentioned a few weeks ago that I’ll have to do a butt swab at some point during my 3rd trimester. Does anyone know which week that’s usually done, and what are they testing for?🤔