Illegal string offset 'en_US'

EDIT: the issue resolved itself after changing the system PHP version to 8.0.