Thank you for reporting this issue. There was a run of Beta builds where pre-comps could not have Roto Brush applied but the issue is resolved in the latest build of After Effects (Beta) 22.214.171.124. Please let us know if you're still experiencing this error in the latest build.
Thanks very much,
- John, After Effects Engineering Team