generate_packets.py: replace custom formatting in Variant.get_receive()
Part of #44577. Replace the <var>-based custom formatting in Variant.get_receive() with a string join.
Part of #44577. Replace the <var>-based custom formatting in Variant.get_receive() with a string join.