Cannot recover space after deleting Windows partition in bootcamp
Your disk has an APFS container, followed by a ‘Microsoft Basic Data’ partition called ‘datashare’, then free space. You can't join non-contiguous partitions.
Either delete the partition named 'datashare', or create a new separate partition in the free space.
You can perform these operations by choosing Partition from the toolbar in Disk Utility.