Toronto Montréal Calgary Ottawa Vancouver New York | | June 4, 2024 The Bank of Nova Scotia 40 Temperance Street Toronto, Ontario, M5H 0B4 Dear Sirs/Mesdames: The Bank of Nova Scotia – U.S.$400,000,000 Floating Rate Senior Medium-Term Notes due 2027, U.S.$850,000,000 5.400% Senior Medium-Term Notes due 2027, U.S.$300,000,000 Floating Rate Senior Medium-Term Notes due 2029 and U.S.$700,000,000 5.450% Senior Medium-Term Notes due 2029 We have acted as Canadian counsel to The Bank of Nova Scotia (the “Bank”) in connection with the issue and sale today (the “Offering”) by the Bank of U.S.$400,000,000 aggregate principal amount of its Floating Rate Senior Medium-Term Notes due 2027, U.S.$850,000,000 aggregate principal amount of its 5.400% Senior Medium-Term Notes due 2027, U.S.$300,000,000 aggregate principal amount of its Floating Rate Senior Medium-Term Notes due 2029 and U.S.$700,000,000 aggregate principal amount of its 5.450% Senior Medium-Term Notes due 2029 (collectively, the “Notes”) constituting part of the Senior Medium-Term Notes, Series I of the Bank, pursuant to the distribution agreement dated December 29, 2021 (the “Distribution Agreement”) between, among others, the Bank and Scotia Capital (USA) Inc., and the terms agreement dated May 29, 2024 (the “Terms Agreement”) between the Bank and the agents named therein. The Notes are issuable under and pursuant to a senior debt indenture dated as of January 22, 2010 (the “Base Indenture”) among the Bank, Computershare Trust Company, N.A., as U.S. trustee (the “U.S. Trustee”), and Computershare Trust Company of Canada, as Canadian trustee (the “Canadian Trustee” and, together with the U.S. Trustee, the “Trustees”) as amended and supplemented by a first supplemental indenture dated as of November 30, 2018 and by a second supplemental indenture dated as of December 27, 2021 (as so amended and supplemented, the “Indenture”). We are solicitors qualified to practise law in the Province of Ontario and we express no opinion as to any laws or any matters governed by any laws other than the laws of the Province of Ontario and the federal laws of Canada applicable therein. As Canadian counsel to the Bank, we have examined originals or copies, certified or otherwise authenticated to our satisfaction, of the following: 1. the prospectus of the Bank dated December 29, 2021 included in the Registration Statement (the “Basic Prospectus”) as supplemented by the prospectus supplement dated December 29, 2021 specifically relating to the Senior Medium-Term Notes, Series I (the “Prospectus Supplement”) and the pricing supplement dated May 29, 2024 (the “Pricing Supplement”, and together with the Basic Prospectus and the Prospectus Supplement, the “Prospectus”); 
|