The subscription to Apple Music must be the Family subscription that costs more than the Individual plan. With the Individual plan, the other family members will not be able to access Apple Music in Family Sharing.
If using the iOS 18 beta, you can expect some features to not work and support is not available. For problems using the Beta, you are directed to use the provided Feedback when you chose to be a bug tester. For support, it is recommended to restore to the shipping version and verify if the issue persists.
Apple Beta — Restore Shipping Software