Hello!
Yes, you can activate ESU license on Windows Server 2012/2012 R2. Each license is valid for one device only, so you will need to purchase a separate license for each server.
Regarding ESU, it is recommended that you refer to the official documentation, which will be more accurate:
Product Lifecycle FAQ - Extended Security Updates | Microsoft Learn
Best Regards,
Hania Lian