There are several ways. Option 1:
Sync the photos to your iPhone or iPad by going to Settings/[Your Name]/iCloud and turn on the switch for Photos if it isn’t on already, and wait for them to sync. Then turn the switch off, and when asked say to keep the photos on your phone.
Then log out of the family share ID, and log in with your own ID and turn to Photos switch on to sync to your iCloud. If you have more than a few photos you will have to “rent” additional iCloud space.
Option 2: Sync the photos to your computer: Copying personal photos and videos from iPhone, iPad, or iPod touch to your computer
Option 3: Add the Google Photos app, and use it to sync the photos to your Google account.
There are others ways, but this is a start.