That is expected, the platforms
setting is only for customising the deployment target, but not for restricting supported platforms, see the notes in [Accepted with Modifications] SE-0236: Package Manager Platform Deployment Settings
2 Likes