The correct phrase is 'apologize for' when expressing regret for something done or said. The preposition 'for' indicates the reason for the apology. 'Apologize to' would be used for the person receiving the apology, but here we're focusing on the action itself.