I'm not aware of any Open Source license,or Free license for that matter,that has a give-back clause. Source code is available to -users- ,not prior-authors.
Some Open Source licenses can be used in proprietary code, (MIT, BSD etc) with little more than simple attribution.
Those developers chose that license for a reason, and I've got no problem with commercial entities using that code.
There is a valid argument to be made about the training of models on GPL code. (Argument in the sense that there's two sides to the coin.) On the one hand we happily train humans on GPL code. Those humans can then write their own functions,but for trivial functions they're gonna look a lot like GPL Source.
If the AI is regurgitating GPL code as-is, then that's a problem- not dissimilar to a student or employee regurgitating the same code.
But this argument is about Free software licenses,not really (most?) Open Source licenses.
Either way OSS/Free is not about "giving back",its about giving forward.
In the specific case here of co-pilot making money,I'd say A) you're allowed to make money from Free/OSS code. B) no one is forcing you to use this feature.