Best advise for future - do a backup! iCloud is super comfy for apple devices. About extract the data- try this They helped me ones, after i dropped my iPhone in the pool , phone is dead but i have all my contacts and photos at least.
You can extract your ssd and try to get info from it using other laptop/ pc but if it was damaged buy liquid too it can become a problem. If your ssd is broken you won’t extract data by yourself. Try this, and if I won’t work - go to some data recovery company, they usually do all this stuff easily. I used this on time - www.datarecovery.net - but you can just google, there is a lot of other companies.