The regulation implies that you would have a wash sale if you bought replacement stock within 30 days of the date you closed the short sale. (fairmark.com)
But the requirement for replacement stock should prevent the wash sale rule from applying here. (fairmark.com)
Your instincts are correct: the wash sale rule doesn't apply because the stock you bought isn't replacement stock for the stock you sold. (fairmark.com)