Use Field Restriction, Restriction, and Scoping Rules in Unlocked Packages

Salesforce now supports field restriction rules, restriction rules, and scoping rules in unlocked packages. Customers with multiple Salesforce orgs can include these rules before creating an unlocked package and installing it in a target environment.

Where: This change applies to unlocked packages.

https://help.salesforce.com/s/articleView?id=release-notes.rn_forcecom_sharing_include_rules_unlocked_packages.htm&release=236&type=5