Captain Marvel has a long history with at least 3 different characters holding the mantle. Putting aside Billy Batson and that universe, the original Marvel Captain Marvel was Mar-Vell, a Kree warrior and got the power cosmic and best written AND drawn by the legendary Jim Starlin. Starlin eventually wrote The Death of Captain Marvel n original graphic novel where the character died of cancer. The 2nd Marvel Captain Marvel was Monica Rambeaux who was a great character who could transport at the speed of light. Not sure what happened to her.
Carol Danvers, I believe, became cosmic with the X-Men. She’ll become the prominent one soon, and I look forward to seeing how they flesh her out in the next year or so.