We need to strip PHP8 attributes from 3rd party libraries because after minification that we do during the build
they cause that PHP code is invalid. This commit updates the regular expression used for stripping attributes
so that it covers also attributes like this one: #[\ReturnTypeWillChange].
[MAILPOET-3889]