You guys sound like you're both in your 20's. Guys going out with other guys does not mean they're flirting with girls at all.
But it does mean they are setting the scene up for several big messes. Because guys get together and drink and before you know it, fights break out or someone decides it's okay to drive drunk and they plow into some innocent people in a car.
Drinking with the guys a lot can easily lead to an alcohol dependence /addiction if he is doing this often . They can also have a different personality when drunk and may be what's called "an angry or mean drunk" and that's when things can go wrong at home such as fighting with the girlfriend or wife and bad things happen.
This will be your life for a while until, or even if, he decides to grow up.
If I were you, him flirting with girls would be the last thing on my mind. I would be more worried about all things that can go wrong when a young guy drinks.
Actually there's nothing good about it -from hangover to it affecting the liver and kidneys and eventually shutting the body down. You need to make a decision if he does this often, whether to find someone else or stay in that heartbreaking life .
I know what I am talking about unfortunately ...
... but still am sorry for the long answer.