Adding custom slugs: parent-page/username/child-page/

Found the solution!

I was trying to over complicate things. The best method I’ve come up with is:

    $users=get_page_by_title('users');
    $about=get_page_by_title('about');
    add_rewrite_rule('^users/([^/]*)$','index.php?page_id='.$users->ID.'&username=$matches[1]','top');
    add_rewrite_rule('^users/([^/]*)/about/?','index.php?page_id='.$about->ID.'&username=$matches[1]','top');

Haven’t come up with errors yet, haven’t tested yet!