One way to protect yourself would be to use public domain characters, or to use details that are shared by multiple characters from different licenses. DC is not going to sue you for having a flying guy with a cape because they haven't sued Marvel for Hyperion or Dynamite/ Amazon for
The Boys.
Honestly, it's quite rare for a major company to sue for copyright infringement. The last example I can recall for someone trying to do a new character was in the 1990s when Rob Liefeld tried to do a comic book about someone very similar to Captain America.
This was after his run on Heroes Reborn Captain America.
First, he tried with a "new" character called Agent America.
Then he tried with Fighting American, an existing character. Marvel sued, although the main thing they got out of it was preventing Fighting American from doing things that are unique to Captain America (IE- throwing a shield as a weapon.)
https://iblogalot.com/2020/07/06/rob...ting-american/
https://web.archive.org/web/20100813...od-at-heart/3/
This was a special situation since there were quite a few elements borrowed liberally from Captain America, and Rob Liefeld had worked on Cap recently, so it seemed like someone taking advantage of the branding of a copyrighted character to compete with the character. That argument wouldn't apply to most new characters.