Gender issues among peers are probably not as fraught as those with direct reports. That doesn't mean they shouldn't be tackled immediately or treated seriously. Offhand comments that may have gone unnoticed or commented on in the past could be gossip‐worthy or offensive today. If you have coworkers from younger generations this could be a particular danger. Your feelings don't matter. What counts is how your coworker feels. Approach this, as much as possible, as an apology to a friend. The more camaraderie you can create or draw on the more likely you'll be quickly forgiven. Include a clear “I'm sorry” statement, express regret, demonstrate that you know why your comments or actions were insensitive, and express empathy for how your coworker feels. Offer to reach out to others who saw your actions or heard your comments. Often, the offer is enough.
This script can be modified to: