Trastuzumab ( Herceptin ( ) ) is a humanized monoclonal antibody targeting the human epidermal growth factor receptor 2 ( HER2 ) and is used in the treatment of HER2-overexpressing breast and gastric cancer .