Here is a way to make the grammar generate exactly your target by inserting just two terminals (39 and 40) into existing rules:

Updated production rules:
rule_165: A75 -> A76 A78 39 A13 A77
rule_172: A82 -> A65 40