Set your events to be
Private or Public
and choose if others who have access to your calendar can see your event’s details.
You can do the same with
tasks locked in the calendar
by going to Settings → Tasks → Event Visibility.
Screenshot 2022-06-01 at 18