dot notation doesn’t work for making new variables, but you can create variables with an expression. I think you will do better with formatted strings though.
@export_multiline var text_input: String = "There are a total of %d cats." % num_cats
Keep in mind this won’t update as num_cats updates, it’s set once and stays that way regardless of other variables used to create the string.