validationMessages not working for regex

 TextInput::make('discount_amount')
                ->regex('/^[0-9]+(\.[0-9]{2})$/i') 
                ->validationMessages([
                    'regex' => 'Must include a decimal point and at least one digit before and exactly 2 digits after the decimal point. (e.g. 100.00)'
                ])
                ->prefix('$')
                ->currencyMask(',', '.', 2)


The standard validation message is shown, not the one in the validationMessages array.

Also, if this field is live(onBlur: true) should it validate the field when the onBlur event is fired, because that's not happening.
Was this page helpful?