Hi,
Congratulations on your lovely baby.
Breastfeeding journeys are rarely linear, and you need to give yourself some grace. It sounds like you've both been through a lot. The priority is having a well, nourished baby, whatever that means, and not tearing yourself apart in the process.
Whilst their are some moderate health benefits of breastfeeding to babies and mums (these are often overstated, see Emily Oster's book Crib sheet), maternal mental health is a much stronger influence of outcome for kids.
My baby was born prematurely and was on a ventilator, in hospital for weeks, and then fed via an NG tube after we came home. We're still breastfeeding 8 months later, but it took lots and lots of time to establish (at least 4 months!). In the moment it feels so frustrating but it won't last forever and it's still possible you have an entirely successful breastfeeding journey.
I used to feel SO INSANELY JEALOUS of women who just threw their baby to the breast but now, in retrospect, 8 months on, I am so proud of my persistence and what I have been able to do for my baby despite many challenges.
Excellent advice from others on the thread re feeding baby at the breast.
Advice re pumping - I exclusively pumped whilst we needed and still pump now.
Check your flange size multiple times - the size I was given in NICU was generic and the totally wrong size for my nipples so check yourself. Ensure you've got a decent wall pump (spectra is the most commonly available). Stay away from any "wearable" pump at the moment, even if it claims to be "hospital grade". You need to pump every 2-3 hours, including overnight. You can start to drop pumps once your supply regulates at 12 weeks.