Unfortunately, you can only use Nearby Sharing with devices running Windows 10 and Windows 11. Even then, you can still share files between Android and Windows in your network.