Exhibit 23.1

Consent of Independent Registered Public Accounting Firm

We consent to the use of our report dated March 16, 2022, with respect to the consolidated financial statements of Baudax Bio, Inc., incorporated herein by reference, and to the reference to our firm under the heading “Experts” in the prospectus.

/s/ KPMG LLP

Philadelphia, Pennsylvania

April 6, 2023