docs(forms): add section under Validators.pattern detailing use of global and sticky flags gotcha (#39055)
docs(forms): add section under Validators.pattern detailing use of global and sticky flags gotcha (#39055)

Due to how the global and sticky flag make RegExp objects stateful,
adds section detailing how it is not recommended
to use these flags for control validations.

PR Close #39055

shairez/angular,blesh/angular,angular-indonesia/angular,alxhub/angular,gkalpak/angular,JiaLiPassion/angular,IdeaBlade/angular,manekinekko/angular,blesh/angular,angular-indonesia/angular,brandonroberts/angular,IdeaBlade/angular,brandonroberts/angular,manekinekko/angular,blesh/angular,JiaLiPassion/angular,alxhub/angular,angular/angular,gkalpak/angular,gnomeontherun/angular,manekinekko/angular,JiaLiPassion/angular,JiaLiPassion/angular,angular/angular,IdeaBlade/angular,gkalpak/angular,ocombe/angular,ocombe/angular,blesh/angular,alxhub/angular,brandonroberts/angular,mgechev/angular,gkalpak/angular,shairez/angular,angular/angular,gnomeontherun/angular,gnomeontherun/angular,ocombe/angular,ocombe/angular,IdeaBlade/angular,ocombe/angular,mgechev/angular,mgechev/angular,brandonroberts/angular,angular/angular,alxhub/angular,angular-indonesia/angular,IdeaBlade/angular,brandonroberts/angular,ocombe/angular,shairez/angular,brandonroberts/angular,mgechev/angular,mgechev/angular,gnomeontherun/angular,manekinekko/angular,shairez/angular,manekinekko/angular,manekinekko/angular,alxhub/angular,angular-indonesia/angular,shairez/angular,blesh/angular