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 18, 2025, 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, 2024.
/s/ Ernst & Young LLP
Iselin, New Jersey
March 18, 2025