See if the following array entered formula, which is just a modification of KOKOSEK's formula, does what you want:
Formula: copy to clipboard
=IF(OR(LEN(A2)=7,RIGHT(A2,3)="176",RIGHT(A2,3)="177",RIGHT(A2,3)="230"),SUBSTITUTE(TEXTJOIN("",1,IF(IFERROR(FIND(LEFT(A2,7),$A$2:$A$236)*((RIGHT(A$2:A$236,3)="176")+(RIGHT(A$2:A$236,3)="177")+(RIGHT(A$2:A$236,3)="230")+(LEN(A$2:A$236)=7)),0)<>0,$A$2:$A$236&", ","")),A2&", ",""),"")

Let us know if you have any questions.