import re
text = "Job 1233:name_uuid (table n_Cars_1234567$20220316) done. Records: 24, with errors: 0."
rx = r"table\s+([^()]*\$([0-9]+))"
m = re.search(rx, text)
if m:
	print(m.group(1))
	print(m.group(2))