You should be able to press the share button, and record last 5 minutes to hour of gameplay, should be a screenshot option too.

As for how you get it off the PS5, I've only ever uploaded directly to my linked Youtube account, so idk about doing it another way.