AEJuice Add Dynamic Text Box is a script for After Effects that adds a resizable text box to a selected layer in a single click. Once applied, it brings in controls to adjust border color, borders, stroke, and other parameters, so the box can be shaped without building the setup by hand.
The script works with all languages, including Arabic, and its expressions run in all versions of After Effects from CC 2015 onward and across all interface languages. It also comes integrated with kBar out of the box, so it can be triggered from a kBar button.
AEJuice notes that it uses this script for all the resizable text animations across its own packages. It supports After Effects CC 2015 through CC 2022 or higher, and is listed here as free.