why I cannot suppress warning with regex using warnings.filterwarnings
Your regular expression does not match the correct message string.
r".*A Value is trying to.*"
does not match "\nA value is trying to be.*"
because r"."
matches everything except the newline character.
Sometimes it can be tricky to figure out what the actual message string is without looking at the source code of the module that generated the warning.