You're talking about the plastic tab that completes the battery connection? If you pulled it off, rather than out, you should be able to twist off the battery cover, remove the battery and lift off the plastic film underneath.
To move an AirTag from one device to another, you need to remove the AirTag from the first device before it can be paired with another - they're activation locked, to prevent theft of the AirTag.