@marta Please explain more details on what you’re experiencing.
On your iPad, try turning off and back on bluetooth. Sometimes that restarts connection.
Re-syncing the stylus can help reestablish connection.
On your Mac, go to Astropad’s Preferences, and click the “Stylus” tab.
At the bottom of the window, click “Remove stylus”. Then try pairing on your iPad again.