Safari is updated when you upgrade the OS on your Mac.
The model year of a MacBook Pro is available at Apple menu > About This Mac.
A mid 2010 through late 2011 MacBook Pro can be upgraded to High Sierra 10.13.6 but no later version. See: https://support.apple.com/en-us/HT211683
A mid 2012 through early 2013 MacBook Pro can be upgraded to Catalina 10.15.7. See: https://support.apple.com/en-us/HT211683
A late 2013 and mid 2014 can be upgraded to the current version of Big Sur. See: https://support.apple.com/en-us/HT211683
An early 2015 or later can be upgraded to the current version of Monterey. See: https://support.apple.com/en-us/HT212735
If your MacBook Pro is a 2011 or older and not compatible with anything later than High Sierra 10.13.6, another option would be to install another internet browser such as Chrome or FireFox.