EXHIBIT 23.1
Consent of Independent Registered Public Accounting Firm
We consent to the incorporation by reference in the following Registration Statements:
of our report dated March 11, 2024, with respect to the consolidated financial statements of Olema Pharmaceuticals, Inc. included in this Annual Report (Form 10-K) of Olema Pharmaceuticals, Inc. for the year ended December 31, 2023.
/s/ Ernst & Young LLP
Iselin, New Jersey
March 11, 2024