In order to play most PS4 and PS5 games in online multiplayer, you need to have a PlayStation Plus subscription. Some games don't require a subscription, check PlayStationStore to see if PlayStation Plus is required for online play.