I tested it with b4a V13.7, pasting over 500 lines, each with 80 characters and two ${....} strings per line, and it finished almost instantly without the IDE freezing! (OS: WIN10, CPU: AMD R5-8600G, RAM: 16GB)
What is the content of the pasted text string?