Inclusion Criteria:  Male and female patients with a confirmed diagnosis of primary wAIHA or systemic lupus erythematosus (SLE)-associated wAIHA (without other SLE-related manifestations apart from cutaneous and musculoskeletal manifestations) Participants who have previously failed to maintain a sustained response after treatment with corticosteroids. Eastern Cooperative Oncology Group (ECOG) performance status grade 2 or lower. Up-to-date vaccination status as per local guidelines. Body mass index (BMI) >17.5 and <40 kg/m2 All contraceptive use by men and women should be consistent with local regulations regarding the methods of contraception for those participating in clinical studies.  Part B only  Evidence of treatment efficacy to rilzabrutinib as defined by achieving overall response during Part A. Completion of Part A treatment period (24 weeks).  Exclusion Criteria:  Clinically significant medical history or ongoing chronic illness that would jeopardize the safety of the participant or compromise the quality of the data derived from his or her participation in the study as determined by the Investigator. Participants with medical history of lymphoma, leukemia, or any malignancy within the past 5 years except for basal cell or squamous epithelial carcinomas of the skin that have been resected with no evidence of metastatic disease for the past 3 years. Secondary wAIHA from any cause including drugs, lymphoproliferative disorders (low-count monoclonal B-cell lymphocytosis is allowed), infectious or autoimmune disease, or active hematologic malignancies. Participants with positive antinuclear antibodies but without a definitive diagnosis of an autoimmune disease are allowed. Myelodysplastic syndrome. Uncontrolled or active HBV infection: Patients with positive HBsAg and/or HBV DNA. HIV infection. Concurrent treatment with other experimental drugs or participation in another clinical trial with any investigational drug within 30 days or 5 half-lives, whichever is greater, prior to treatment start. Known allergy to any of the study medications, their analogues, or excipients in the various formulations of any agent.  Part B only  Participants who receive any therapy during Part A known to be active in wAIHA. Presence of unacceptable side effect(s) or toxicity associated with rilzabrutinib such that there is an unfavorable risk-benefit assessment for continued treatment with rilzabrutinib in the opinion of the Investigator and/or Sponsor.  The above information is not intended to contain all considerations relevant to a patient's potential participation in a clinical trial.