Whenever an indictment or information charging a felony is dismissed for any reason after the period prescribed by the applicable statute of limitations has expired, a new indictment may be returned in the appropriate jurisdiction within six calendar months of the date of the dismissal of the indictment or information, or, in the event of an appeal, within 60 days of the date the dismissal of the indictment or information becomes final, or, if no regular grand jury is in session in the appropriate jurisdiction when the indictment or information is dismissed, within six calendar months of the date when the next regular grand jury is convened, which new indictment shall not be barred by any statute of limitations. This section does not permit the filing of a new indictment or information where the reason for the dismissal was the failure to file the indictment or information within the period prescribed by the applicable statute of limitations, or some other reason that would bar a new prosecution.