It'll be ok to take painkillers for longer... Dunno about the infection though, normally antibiotics are prescribed to clear the infection before the tooth is extracted.
Even though the tooth has gone, surely the infection is still in your system therefore antibiotics should have been prescribed?