The actress will appear in James Gunn's highly anticipated DC sequel in a morally ambiguous role that could complicate the hero's love life.