blink 3 times exercice with 'for' function (builtin led)

I have an Arduino Uno and I'm tying to make the builtin led blink 3 times and then stop.

The led blinks but it doesn't stop at the third blink, instead it goes on indefinetely. There is no error during compilation nor uploading. By now i imagine that there are myriad of better ways to do this, but I really wanted to understand why it doesn't stop. Is the 'for' function not well writen?
I'm really new to arduino.

Thank you in advance for your time.

The code is as follows:

void setup() {
  pinMode(LED_BUILTIN,OUTPUT);

}

void loop() {
  for (byte i=0; i<=3; i++){
 digitalWrite(LED_BUILTIN,HIGH);
 delay(1000);
 digitalWrite(LED_BUILTIN,LOW);
 delay(1000);}
 //this last digitalWrite is supposed to be from the i=4 to infinitum
//but i now think that logic doesnt work here
digitalWrite(LED_BUILTIN,LOW);
}

You are running the blink code inside your loop, so it starts again from the beginning and this is the reason you are not able to notice it.

Also to blink 3 times use i<=2, not 3, as the count starts at 0(0, 1, 2..)

Here you can see your code blinking only 3 times.

void setup() {
  pinMode(LED_BUILTIN,OUTPUT);
  for (byte i=0; i<=2; i++){
 digitalWrite(LED_BUILTIN,HIGH);
 delay(1000);
 digitalWrite(LED_BUILTIN,LOW);
 delay(1000);}

}

void loop() {
  
 //this last digitalWrite is supposed to be from the i=4 to infinitum
//but i now think that logic doesnt work here
digitalWrite(LED_BUILTIN,LOW);
}

thank you!! I really thought it would exit the loop by the time it didnt compile with the condition. thanks for the help!!